Skip to content

Commit

Permalink
fix: service work inactive (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie authored Jul 10, 2024
1 parent 9deaab1 commit bda49d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ const checkIntervalTime = 1500
const storage = new Storage()
let capture = false

// Try to avoid the issue of the extension inactive after the browser is restarted.
// https://stackoverflow.com/a/76344225/8129004
chrome.runtime.onStartup &&
chrome.runtime.onStartup.addListener(function () {
console.log("onStartup")
})
;(async function () {
// initContextMenus()

Expand Down

0 comments on commit bda49d2

Please sign in to comment.