Skip to content

Commit

Permalink
on-extension-start - Update delay documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Dec 17, 2024
1 parent 32c4479 commit 3b6375c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/on-extension-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ async function listener() {
await chrome.storage.local.set({started: Date.now()})
}

// Add the listener as soon as possible because the "onExtensionStart"
// event happens around 100ms after 'webext-events' is loaded
// Add the listener as soon as possible or else they'll miss the "onExtensionStart" event
onExtensionStart.addListener(listener);
```

Expand Down

0 comments on commit 3b6375c

Please sign in to comment.