diff --git a/init.html b/init.html deleted file mode 100644 index 4dc7b90..0000000 --- a/init.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/init.js b/init.js index d3ff42a..56e6efa 100644 --- a/init.js +++ b/init.js @@ -1,7 +1,9 @@ // placeholder - will be used when options are implemented +registerEvents(); + chrome.runtime.onStartup.addListener(function() { - registerEvents(); + // Optional: any startup logic if needed, but listeners are already registered }); diff --git a/manifest.json b/manifest.json index 87ade04..d001722 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "manifest_version": 2, + "manifest_version": 3, "name": "Better Bookmark", "description": "Easily add bookmarks to any category. Includes spotlight-like search with mouse/keyboard support. Default key: cmd+b (win:ctrl+b)", @@ -9,7 +9,7 @@ "default_locale": "en", "background": { - "page": "init.html" + "service_worker": "init.js" }, "icons": { @@ -18,7 +18,7 @@ "128": "bookmark.png" }, - "browser_action": { + "action": { "default_icon": { "19": "bookmark.png", "38": "bookmark.png" @@ -27,7 +27,7 @@ "default_popup": "background.html" }, "commands": { - "_execute_browser_action": { + "_execute_action": { "suggested_key": { "default": "Ctrl+B",