Skip to content

Commit

Permalink
fix menuitems in extension not updating on server url change
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Penninckx committed May 15, 2018
1 parent 5dafa63 commit cf94a4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions browserextension/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ function restoreOptions() {

function refreshMenuItems(e) {
getRequest('triggers', function(menu_items) {
xplatform_storage_set('menu_items', menu_items.join(','));
});
xplatform_storage_set('menu_items', menu_items);

updateMenuItemsFromStorage();
updateMenuItemsFromStorage();
});
}

function updateMenuItemsFromStorage() {
Expand Down

0 comments on commit cf94a4f

Please sign in to comment.