Make menus calls synch

This commit is contained in:
Will Bamberg
2018-03-07 17:01:19 -08:00
parent 395210c046
commit 3e3e6679e6

View File

@@ -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 => {