Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion init.html

This file was deleted.

4 changes: 3 additions & 1 deletion init.js
Original file line number Diff line number Diff line change
@@ -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
});


Expand Down
8 changes: 4 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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)",
Expand All @@ -9,7 +9,7 @@
"default_locale": "en",

"background": {
"page": "init.html"
"service_worker": "init.js"
},

"icons": {
Expand All @@ -18,7 +18,7 @@
"128": "bookmark.png"
},

"browser_action": {
"action": {
"default_icon": {
"19": "bookmark.png",
"38": "bookmark.png"
Expand All @@ -27,7 +27,7 @@
"default_popup": "background.html"
},
"commands": {
"_execute_browser_action": {
"_execute_action": {

"suggested_key": {
"default": "Ctrl+B",
Expand Down