diff options
Diffstat (limited to 'src/Vencord.ts')
-rw-r--r-- | src/Vencord.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Vencord.ts b/src/Vencord.ts index 98bc83a..af6ca08 100644 --- a/src/Vencord.ts +++ b/src/Vencord.ts @@ -50,7 +50,7 @@ async function init() { await update(); const needsFullRestart = await rebuild(); if (Settings.autoUpdateNotification) - showNotification({ + setTimeout(() => showNotification({ title: "Vencord has been updated!", body: "Click here to restart", permanent: true, @@ -60,19 +60,19 @@ async function init() { else location.reload(); } - }); + }), 10_000); return; } if (Settings.notifyAboutUpdates) - showNotification({ + setTimeout(() => showNotification({ title: "A Vencord update is available!", body: "Click here to view the update", permanent: true, onClick() { SettingsRouter.open("VencordUpdater"); } - }); + }), 10_000); } catch (err) { UpdateLogger.error("Failed to check for updates", err); } |