Index: lib/filterComposer.js |
=================================================================== |
--- a/lib/filterComposer.js |
+++ b/lib/filterComposer.js |
@@ -162,17 +162,17 @@ |
filters.push(docDomain.replace(/^www\./, "") + "##" + selector); |
} |
} |
return {filters, selectors}; |
} |
let contextMenuItem = { |
- title: chrome.i18n.getMessage("block_element"), |
+ title: browser.i18n.getMessage("block_element"), |
contexts: ["image", "video", "audio"], |
onclick(page) |
{ |
page.sendMessage({type: "composer.content.contextMenuClicked"}); |
} |
}; |
function updateContextMenu(page, filter) |
@@ -190,17 +190,17 @@ |
page.contextMenus.create(contextMenuItem); |
} |
} |
FilterNotifier.on("page.WhitelistingStateRevalidate", updateContextMenu); |
Prefs.on("shouldShowBlockElementMenu", () => |
{ |
- chrome.tabs.query({}, tabs => |
+ browser.tabs.query({}, tabs => |
{ |
for (let tab of tabs) |
updateContextMenu(new ext.Page(tab)); |
}); |
}); |
port.on("composer.isPageReady", (message, sender) => |
{ |