Skip to content

Commit

Permalink
Fix: only open welcome page when installed (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
asieduernest12 authored Aug 17, 2023
1 parent d248679 commit 457efed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function onInstallHandler(event: chrome.runtime.InstalledDetails) {
previousVersion,
});

if ((isNewVersion && /install|update/.test(eventReason)) || process.env.NODE_ENV === 'production') {
if ((isNewVersion && /install/i.test(eventReason)) || process.env.NODE_ENV === 'production') {
openInstallationWelcomePage(eventReason);
}

Expand Down

0 comments on commit 457efed

Please sign in to comment.