We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e9a03c commit 74e68bcCopy full SHA for 74e68bc
src/scripts/background/index.ts
@@ -23,6 +23,8 @@ try {
23
try {
24
onVersionUpdate(async details => {
25
console.debug(`Extension updated`, details);
26
+ const { previousVersion, nextVersion } = details;
27
+ if (previousVersion?.split('.').slice(0, 2).join('.') === nextVersion?.split('.').slice(0, 2).join('.')) return;
28
await storage.local.set(MessageType.VersionUpdate, { ...details, date: Date.now() });
29
});
30
} catch (error) {
0 commit comments