Make menus calls synch (#345)

This commit is contained in:
wbamberg
2018-03-08 08:02:05 -08:00
committed by GitHub
parent 395210c046
commit c396327757

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