Skip to content
Open
Changes from 1 commit
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
9 changes: 8 additions & 1 deletion src/ShareButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,14 @@ class ShareButton extends ShareUtils {
for (let network of networks) {
networkList += `<li class='${network}' data-network='${network}'><a></a></li>`;
}
instance.innerHTML = `${this.config.ui.buttonText}<div class='${this.config.ui.namespace}social load ${this.config.ui.flyout}'><ul>` + networkList + `</ul></div>`;

// Configure buttonText as false to leave button text alone
var buttonText = this.config.ui.buttonText;
if (buttonText==false) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add spacing around the == comparison for me? - this'll be good to go after that 😄

buttonText = instance.innerHTML;
}

instance.innerHTML = `${buttonText}<div class='${this.config.ui.namespace}social load ${this.config.ui.flyout}'><ul>` + networkList + `</ul></div>`;
}

/**
Expand Down