Skip to content

Commit

Permalink
Remove update check
Browse files Browse the repository at this point in the history
  • Loading branch information
Vince committed Nov 19, 2024
1 parent a02cc2e commit 927e6c0
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions src/Vencord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,35 +91,9 @@ async function init() {

syncSettings();

if (!IS_WEB && !IS_UPDATER_DISABLED) {
try {
const isOutdated = await checkForUpdates();
if (!isOutdated) return;

if (Settings.autoUpdate) {
await update();
if (Settings.autoUpdateNotification)
setTimeout(() => showNotification({
title: "Vencord has been updated!",
body: "Click here to restart",
permanent: true,
noPersist: true,
onClick: relaunch
}), 10_000);
return;
}

setTimeout(() => showNotification({
title: "A Vencord update is available!",
body: "Click here to view the update",
permanent: true,
noPersist: true,
onClick: openUpdaterModal!
}), 10_000);
} catch (err) {
UpdateLogger.error("Failed to check for updates", err);
}
}




if (IS_DEV) {
const pendingPatches = patches.filter(p => !p.all && p.predicate?.() !== false);
Expand Down

0 comments on commit 927e6c0

Please sign in to comment.