Skip to content

Commit 088c2c4

Browse files
committed
Check previousVersion when update
1 parent b403e8c commit 088c2c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/background.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Browser.runtime.onInstalled.addListener(async details => {
4343
active: true,
4444
});
4545
}
46-
if (details.reason == 'update') {
46+
if (details.reason == 'update' && !details.previousVersion) {
4747
const showChangelog = (await Settings.getInstance().getSetting(
4848
StorageParams.SHOW_CHANGELOG,
4949
)) as boolean;

0 commit comments

Comments
 (0)