Index: lib/filterComposer.js |
=================================================================== |
--- a/lib/filterComposer.js |
+++ b/lib/filterComposer.js |
@@ -190,20 +190,20 @@ |
page.contextMenus.create(contextMenuItem); |
} |
} |
FilterNotifier.on("page.WhitelistingStateRevalidate", updateContextMenu); |
Prefs.on("shouldShowBlockElementMenu", () => |
{ |
- ext.pages.query({}, pages => |
+ chrome.tabs.query({}, tabs => |
{ |
- for (let page of pages) |
- updateContextMenu(page); |
+ for (let tab of tabs) |
+ updateContextMenu(new ext.Page(tab)); |
}); |
}); |
port.on("composer.isPageReady", (message, sender) => |
{ |
return readyPages.has(new ext.Page({id: message.pageId})); |
}); |