Skip to content

Commit

Permalink
Make menus calls synch (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg committed Mar 8, 2018
1 parent 395210c commit c396327
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions menu-labelled-open/background.js
Expand Up @@ -16,11 +16,11 @@ browser.menus.onClicked.addListener((info, tab) => {
}
});

async function updateMenuItem(linkHostname) {
await browser.menus.update(openLabelledId, {
function updateMenuItem(linkHostname) {
browser.menus.update(openLabelledId, {
title: `Open (${linkHostname})`
});
await browser.menus.refresh();
browser.menus.refresh();
}

browser.menus.onShown.addListener(info => {
Expand Down

0 comments on commit c396327

Please sign in to comment.