From 0231c9df0a6b69313057f71f5fea654b045b165b Mon Sep 17 00:00:00 2001 From: onozaty Date: Sun, 26 May 2024 20:53:43 +0900 Subject: [PATCH 1/2] =?UTF-8?q?#16=20Manifest=20v3=20=E3=81=AB=E5=AF=BE?= =?UTF-8?q?=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/background.js | 2 +- src/manifest.json | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/background.js b/src/background.js index 15933bd..328df1a 100644 --- a/src/background.js +++ b/src/background.js @@ -1,3 +1,3 @@ -chrome.browserAction.onClicked.addListener(() => { +chrome.action.onClicked.addListener(() => { chrome.tabs.create({url: 'ui/index.html', active: true}); }); diff --git a/src/manifest.json b/src/manifest.json index 568e840..9b5e186 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,27 +1,29 @@ { "name": "__MSG_extensionName__", - "manifest_version": 2, + "manifest_version": 3, "version": "2.0.4", "author": "onozaty", "description": "__MSG_extensionDescription__", "icons": { "128": "icons/icon128.png" }, - "browser_action": { + "action": { "default_icon": "icons/icon128.png" }, "permissions": [ "storage", - "unlimitedStorage", + "unlimitedStorage" + ], + "host_permissions": [ "https://api.pinboard.in/*", "https://www.google.com/bookmarks/*", "https://b.hatena.ne.jp/*" ], "background": { - "scripts": ["background.js"] + "service_worker": "background.js" }, "commands": { - "_execute_browser_action": { + "_execute_action": { "suggested_key": { "default": "Ctrl+Shift+O" } From 875a2097d4c56391d9cf22020297923b85b418bd Mon Sep 17 00:00:00 2001 From: onozaty Date: Mon, 27 May 2024 08:17:04 +0900 Subject: [PATCH 2/2] =?UTF-8?q?#16=20v3.0.0=E3=81=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manifest.json b/src/manifest.json index 9b5e186..37715dc 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_extensionName__", "manifest_version": 3, - "version": "2.0.4", + "version": "3.0.0", "author": "onozaty", "description": "__MSG_extensionDescription__", "icons": {