We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a959eb2 commit 76c8b3dCopy full SHA for 76c8b3d
src/scripts/background/index.ts
@@ -13,13 +13,16 @@ export {};
13
console.debug('Background script started');
14
15
runtime?.onInstalled.addListener(async () => {
16
+ console.debug('Extension installed');
17
if (!context) return;
18
await Promise.all(Object.values(ContextMenus).map(m => context!.create(m)));
19
20
+ console.debug('Context menus created');
21
+
22
context.onClicked.addListener(async info => {
23
+ console.debug('Context menu event', info);
24
if (!context || !runtime) return;
25
if (!info?.selectionText) return;
-
26
await storage.local.set(RouterStorageKey.LastRoute, {
27
name: Route.Search,
28
query: { search: info.selectionText },
0 commit comments