From ba41078b7ad907c5f1da0f839b179fb3a80c7b67 Mon Sep 17 00:00:00 2001 From: dineshs91 Date: Wed, 16 Apr 2025 17:59:02 +0530 Subject: [PATCH] Don't open welcome page on extension update --- background.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/background.js b/background.js index c78135df..3fadbe03 100644 --- a/background.js +++ b/background.js @@ -1,13 +1,11 @@ // Used by the manifest v3 extension chrome.runtime.onInstalled.addListener((object) => { - if (object.reason !== "install" && object.reason !== "update") { + if (object.reason !== "install") { return; } - const targetUrl = `https://typefully.com/minimal-twitter/welcome${ - object.reason === "update" ? "?updated=true" : "" - }`; + const targetUrl = `https://typefully.com/minimal-twitter/welcome`; if (targetUrl) { chrome.tabs.create({