We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed9487 commit 5a22dbfCopy full SHA for 5a22dbf
src/browser/extension/background/contextMenus.js
@@ -17,7 +17,9 @@ chrome.commands.getAll(commands => {
17
});
18
19
export default function createMenu(forUrl, tabId) {
20
- if (typeof tabId !== 'number' || tabId === pageTab) return;
+ if (typeof tabId !== 'number') return; // It is an extension's background page
21
+ chrome.pageAction.show(tabId);
22
+ if (tabId === pageTab) return;
23
24
let url = forUrl;
25
let hash = forUrl.indexOf('#');
@@ -35,6 +37,4 @@ export default function createMenu(forUrl, tabId) {
35
37
onclick: () => { openDevToolsWindow(id); }
36
38
39
-
- chrome.pageAction.show(tabId);
40
}
0 commit comments