summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2022-10-20 17:37:24 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2022-10-20 18:41:47 -0400
commit6207f3fef1363cbde4e9b886e05c97ac6439d469 (patch)
tree5730a610d1151286c7d42e5f833b8c882b7def73
parent9111d9b176a9a97d83bb36d48bd415389ca1c0ad (diff)
Update extension for Manifest V3v2.0.0
-rw-r--r--background.js2
-rw-r--r--manifest.json12
2 files changed, 6 insertions, 8 deletions
diff --git a/background.js b/background.js
index 04b8117..922b57f 100644
--- a/background.js
+++ b/background.js
@@ -26,7 +26,7 @@ function open(url) {
});
}
-chrome.pageAction.onClicked.addListener(function(tab) {
+chrome.action.onClicked.addListener(function(tab) {
open(tab.url);
});
diff --git a/manifest.json b/manifest.json
index b8a3c08..fded481 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,24 +1,22 @@
{
- "manifest_version": 2,
+ "manifest_version": 3,
"name": "Wayback Machine Lookup",
- "version": "1.2.0",
+ "version": "2.0.0",
"description": "Reopen the current tab in the Wayback Machine",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
- "page_action": {
+ "action": {
"default_title": "Reopen the current tab in the Wayback Machine"
},
"author": "Benjamin Barenblat <bbaren@google.com>",
"background": {
- "persistent": false,
- "scripts": ["background.js"]
+ "service_worker": "background.js"
},
- "minimum_chrome_version": "35",
+ "minimum_chrome_version": "88",
"options_ui": {
- "chrome_style": true,
"page": "options.html"
},
"permissions": [