- commit
- 9af5c54e9c1c4b35960dccb01fa6d7d5fab295bb
- parent
- 1fa80cd7d2060e19a284be6ae725247916c5cf1e
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-04-30 05:29
fixup mv3: update count on startup
Diffstat
| M | src/bg.js | 8 | ++++++-- |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bg.js b/src/bg.js
@@ -22,6 +22,12 @@ chrome.runtime.onInstalled.addListener(() => {
22 22 title: 'read link later',
23 23 contexts: ['link'],
24 24 });
-1 25
-1 26 updateCount();
-1 27 });
-1 28
-1 29 chrome.runtime.onStartup.addListener(() => {
-1 30 updateCount();
25 31 });
26 32
27 33 chrome.contextMenus.onClicked.addListener(async function(info, tab) {
@@ -42,5 +48,3 @@ chrome.commands.onCommand.addListener(async function(name, tab) {
42 48 await chrome.tabs.remove(tab.id);
43 49 }
44 50 });
45 -1
46 -1 updateCount();