Skip to content

Commit a14920e

Browse files
committed
chore: close invalid update toasts
1 parent 7a1a486 commit a14920e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/base/underscript/updates.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ wrap(() => {
3838
return data.version !== version; // Always assume that the marked version is better
3939
}
4040
function compareAndToast(data) {
41-
if (!data || !isNewer(data)) return false;
41+
if (!data || !isNewer(data)) {
42+
updateToast?.close('invalid');
43+
return false;
44+
}
4245
eventManager.once(':update:finished :update:force', () => {
4346
updateToast?.close('stale');
4447
if (data.announce) return;

0 commit comments

Comments
 (0)