Skip to content
Open
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
9 changes: 4 additions & 5 deletions src/share-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,8 @@ class ShareButton extends ShareUtils {
_detectNetworks() {
// Update network-specific configuration with global configurations
for (let network of Object.keys(this.config.networks)) {
let display;
let displayClass = 'disabled';

for (let option of Object.keys(this.config.networks[network])) {
if (this.config.networks[network][option] === null) {
this.config.networks[network][option] = this.config[option];
Expand All @@ -738,13 +739,11 @@ class ShareButton extends ShareUtils {

// Check for enabled networks and display them
if (this.config.networks[network].enabled) {
this.class = 'enabled';
displayClass = 'enabled';
this.config.enabledNetworks += 1;
}
else
this.class = 'disabled';

this.config.networks[network].class = this.class;
this.config.networks[network].class = displayClass;
}
}

Expand Down