Skip to content

Commit

Permalink
chrome icon click now toggles
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFantasticWarrior committed Apr 18, 2023
1 parent a7782f8 commit 95b7be4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/js/background.js
Expand Up @@ -768,7 +768,6 @@ cfg.migrateOldStorage(
}
);
chrome.browserAction.onClicked.addListener((a, b) => {
if(typeof b==="undefined")chrome.runtime.openOptionsPage();
else if (b&&b.modifiers.length) chrome.runtime.openOptionsPage();
if (b&&b.modifiers.length) chrome.runtime.openOptionsPage();
else chrome.tabs.sendMessage(a.id, "disable");
});
2 changes: 1 addition & 1 deletion src/manifest.json
Expand Up @@ -36,7 +36,7 @@
"128": "icon.png",
"18": "icon-18.png"
},
"default_title": "Imagus mod v0.10.9.1\nclick to toggle on/off(Firefox)\nshift click to open options page(Firefox)\nclick to open options page(Chrome)"
"default_title": "Imagus mod v0.10.9.1\nclick to toggle on/off\nshift click to open options page(Firefox)"
},
"icons": {
"128": "icon.png",
Expand Down

0 comments on commit 95b7be4

Please sign in to comment.