From 2a3d52045d23035aeb6745b8fa8398eeb2c7a000 Mon Sep 17 00:00:00 2001 From: Linus Norton Date: Tue, 7 May 2024 10:31:28 +0100 Subject: [PATCH] docs: Correct event handler name in handling-updates.md (#653) --- docs/guide/handling-updates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }