Skip to content

Commit

Permalink
Access the options page when clicking the extension icon
Browse files Browse the repository at this point in the history
Change-Id: I4dc518e1a828c79dcb86149c8213d72fff47fde5
  • Loading branch information
avm99963 committed Aug 20, 2020
1 parent 8e03061 commit 1a1d2b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ chrome.runtime.onInstalled.addListener(function(details) {
cleanUpOptions();
}
});

chrome.browserAction.onClicked.addListener(function() {
chrome.runtime.openOptionsPage();
});
1 change: 1 addition & 0 deletions templates/manifest.gjson
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"https://support.google.com/*/thread/*",
"storage"
],
"browser_action": {},
#if defined(CHROMIUM)
"options_page": "options.html",
#endif
Expand Down

0 comments on commit 1a1d2b7

Please sign in to comment.