Skip to content

Commit

Permalink
Fix bug when updating context menu setting (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanoemcke committed Aug 18, 2017
1 parent 6736bae commit 86f0abd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@

//if context menu has been disabled then remove from chrome
if (contains(updatedPreferences, gsUtils.ADD_CONTEXT)) {
chrome.extension.getBackgroundPage().tgs.buildContextMenu(newValue);
var addContextMenu = gsUtils.getOption(gsUtils.ADD_CONTEXT);
chrome.extension.getBackgroundPage().tgs.buildContextMenu(addContextMenu);
}

//if theme or preview settings have changed then refresh all suspended pages
Expand Down

0 comments on commit 86f0abd

Please sign in to comment.