diff --git a/plugin/assets/js/background.js b/plugin/assets/js/background.js index e69de29..8198082 100644 --- a/plugin/assets/js/background.js +++ b/plugin/assets/js/background.js @@ -0,0 +1,5 @@ +const extensionIconClickListener = () => { + chrome.tabs.create({ url: 'chrome-extension://' + chrome.runtime.id + '/popup/index.html' }); +}; + +chrome.browserAction.onClicked.addListener(extensionIconClickListener); \ No newline at end of file diff --git a/plugin/manifest.json b/plugin/manifest.json index f227e50..5fba80e 100644 --- a/plugin/manifest.json +++ b/plugin/manifest.json @@ -8,7 +8,6 @@ "16": "icons/16.png", "32": "icons/32.png" }, - "default_popup": "popup/index.html", "default_title": "FMS" }, "content_scripts": [ { diff --git a/plugin/popup/404.html b/plugin/popup/404.html index d341504..42da558 100644 --- a/plugin/popup/404.html +++ b/plugin/popup/404.html @@ -1,4 +1,4 @@ -