From 6b26c12bfa1f28d40834478b50d2f7b09c9f54fb Mon Sep 17 00:00:00 2001 From: V Date: Tue, 4 Apr 2023 01:16:29 +0200 Subject: Add additional build flavours for Vencord Desktop (#765) --- src/utils/updater.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/utils/updater.ts') diff --git a/src/utils/updater.ts b/src/utils/updater.ts index e13f5cf..d0b1fdc 100644 --- a/src/utils/updater.ts +++ b/src/utils/updater.ts @@ -20,6 +20,7 @@ import gitHash from "~git-hash"; import IpcEvents from "./IpcEvents"; import Logger from "./Logger"; +import { relaunch } from "./native"; import { IpcRes } from "./types"; export const UpdateLogger = /* #__PURE__*/ new Logger("Updater", "white"); @@ -90,8 +91,10 @@ export async function maybePromptToUpdate(confirmMessage: string, checkForDev = if (wantsUpdate) { await update(); const needFullRestart = await rebuild(); - if (needFullRestart) DiscordNative.app.relaunch(); - else location.reload(); + if (needFullRestart) + relaunch(); + else + location.reload(); } } } catch (err) { -- cgit