Skip to content

Commit 76c8b3d

Browse files
committed
fix(logs): adds debug logs in background script
1 parent a959eb2 commit 76c8b3d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/scripts/background/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@ export {};
1313
console.debug('Background script started');
1414

1515
runtime?.onInstalled.addListener(async () => {
16+
console.debug('Extension installed');
1617
if (!context) return;
1718
await Promise.all(Object.values(ContextMenus).map(m => context!.create(m)));
1819

20+
console.debug('Context menus created');
21+
1922
context.onClicked.addListener(async info => {
23+
console.debug('Context menu event', info);
2024
if (!context || !runtime) return;
2125
if (!info?.selectionText) return;
22-
2326
await storage.local.set(RouterStorageKey.LastRoute, {
2427
name: Route.Search,
2528
query: { search: info.selectionText },

0 commit comments

Comments
 (0)