Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ import Sharee from 'sharee';
window.fcShareeConnector = {

create: function (container, optionsJson) {
this._updateXButtonLabel();
this._updateCopyDriverOnClick();
let parsedOptions = JSON.parse(optionsJson);
const sharee = new Sharee(container, parsedOptions);
},

createWithCustomDrivers: function (container, optionsJson) {
this._updateXButtonLabel();
this._updateCopyDriverOnClick();
let parsedOptions = JSON.parse(optionsJson);
// add the custom drivers to the list of drivers
Expand Down Expand Up @@ -114,5 +116,14 @@ window.fcShareeConnector = {
}, 5000)
});
}
}
},

/*
* Workaround to X driver button text to show only "X" instead "X.com" as in the base component.
*/
_updateXButtonLabel() {
Sharee.drivers['x'].prototype.getButtonText = function () {
return "X";
}
}
}