docs: Correct event handler name in handling-updates.md (#653)

This commit is contained in:
Linus Norton
2024-05-07 10:31:28 +01:00
committed by GitHub
parent ea5b81d25e
commit 2a3d52045d
+1 -1
View File
@@ -84,7 +84,7 @@ To validate this, you can create a third ZIP file with a rare permission like `g
You can setup a callback that runs after your extension updates like so:
```ts
browser.runtime.onInstalled.addEventListener(({ reason }) => {
browser.runtime.onInstalled.addListener(({ reason }) => {
if (reason === 'update') {
// Do something
}