diff --git a/docs/guide/handling-updates.md b/docs/guide/handling-updates.md index ef014d4d..9d89516b 100644 --- a/docs/guide/handling-updates.md +++ b/docs/guide/handling-updates.md @@ -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 }