Skip to content

Commit ba41078

Browse files
committed
Don't open welcome page on extension update
1 parent 876ec33 commit ba41078

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

background.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
// Used by the manifest v3 extension
22

33
chrome.runtime.onInstalled.addListener((object) => {
4-
if (object.reason !== "install" && object.reason !== "update") {
4+
if (object.reason !== "install") {
55
return;
66
}
77

8-
const targetUrl = `https://typefully.com/minimal-twitter/welcome${
9-
object.reason === "update" ? "?updated=true" : ""
10-
}`;
8+
const targetUrl = `https://typefully.com/minimal-twitter/welcome`;
119

1210
if (targetUrl) {
1311
chrome.tabs.create({

0 commit comments

Comments
 (0)