Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
🐛 actually take account of setting for share item
Browse files Browse the repository at this point in the history
  • Loading branch information
eramdam committed Aug 6, 2016
1 parent 1500498 commit ea15e57
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,13 @@ BHelper.settings.getAll(settings => {
}

// We create the context menu item
chrome.contextMenus.create({
title: BHelper.getMessage('shareOnTD'),
contexts: ['page', 'selection', 'image', 'link'],
onclick: (info, tab) => contextMenuHandler(info, tab, newSettings),
});
if (newSettings.share_item && newSettings.share_item.enabled) {
chrome.contextMenus.create({
title: BHelper.getMessage('shareOnTD'),
contexts: ['page', 'selection', 'image', 'link'],
onclick: (info, tab) => contextMenuHandler(info, tab, newSettings),
});
}
}, true);
});

Expand Down

0 comments on commit ea15e57

Please sign in to comment.