diff --git a/background/background.js b/background/background.js index 5dbab71..70403d2 100644 --- a/background/background.js +++ b/background/background.js @@ -21,7 +21,7 @@ Find.register("Background", function(self) { Find.browser.contextMenus.removeAll(() => { Find.browser.contextMenus.create({ title: Find.browser.i18n.getMessage("contextmenu_show_help_title"), - contexts: [(Find.browserId !== 'Firefox') ? "action" : "browser_action"], + contexts: ["action"], id: 'show-help' }); diff --git a/manifest_firefox.json b/manifest_firefox.json index 8f0d0c5..9e245ae 100644 --- a/manifest_firefox.json +++ b/manifest_firefox.json @@ -3,13 +3,15 @@ "short_name": "find+", "version": "1", "author": "Brandon Richardson, Michael Walz", - "manifest_version": 2, + "manifest_version": 3, "description": "__MSG_extension_description__", "default_locale": "en", "permissions": [ "activeTab", "storage", - "contextMenus", + "contextMenus" + ], + "host_permissions": [ "" ], "icons": { @@ -17,8 +19,12 @@ "16": "resources/icon.png", "48": "resources/icon.png" }, - "browser_action": { - "default_icon": "resources/icon.png", + "action": { + "default_icon": { + "128": "resources/icon.png", + "16": "resources/icon.png", + "48": "resources/icon.png" + }, "default_popup": "popup/popup.html" }, "background": { @@ -46,7 +52,7 @@ "keyword" : "findplus" }, "commands": { - "_execute_browser_action": { + "_execute_action": { "suggested_key": { "default": "Ctrl+Shift+F", "mac": "MacCtrl+Shift+F"