From 2d0af0b10cf58140a947837d4a2504417f357406 Mon Sep 17 00:00:00 2001 From: kamtschatka Date: Sun, 9 Jun 2024 12:23:26 +0200 Subject: feature(extension): Add a context menu to open your hoarder saves. Fixes #188 (#206) * Feature request: Browser extension "Open your Hoarder saves" #188 Adds a context menu entry when a hoarder instance is configured and removes it again, if it is not configured anymore * Feature request: Browser extension "Open your Hoarder saves" #188 moved storage related functions to settings.ts fixed issues with context menu registration * only fire callback when the settings change --------- Co-authored-by: kamtschatka Co-authored-by: MohamedBassem --- apps/browser-extension/manifest.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/browser-extension/manifest.json') diff --git a/apps/browser-extension/manifest.json b/apps/browser-extension/manifest.json index 19379068..a31885fa 100644 --- a/apps/browser-extension/manifest.json +++ b/apps/browser-extension/manifest.json @@ -11,6 +11,9 @@ "action": { "default_popup": "index.html" }, + "background": { + "service_worker": "src/background/background.ts" + }, "options_ui": { "page": "index.html#options", "open_in_tab": false @@ -23,5 +26,5 @@ "content_security_policy": { "extension_pages": "script-src 'self'; object-src 'self'" }, - "permissions": ["storage", "tabs"] + "permissions": ["storage", "tabs", "contextMenus"] } -- cgit v1.2.3-70-g09d2