From 6bc278ec711f49a85518e10270e96b624b1ea8b5 Mon Sep 17 00:00:00 2001 From: vee Date: Tue, 28 May 2024 18:18:56 +0200 Subject: [PATCH] better check --- src/main/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/constants.ts b/src/main/constants.ts index f680b4e..99be706 100644 --- a/src/main/constants.ts +++ b/src/main/constants.ts @@ -13,7 +13,7 @@ const vesktopDir = dirname(process.execPath); export const PORTABLE = process.platform === "win32" && !process.execPath.toLowerCase().endsWith("electron.exe") && - !readdirSync(vesktopDir).includes("Uninstall Vesktop.exe"); + !existsSync(join(vesktopDir, "Uninstall Vesktop.exe")); const LEGACY_DATA_DIR = join(app.getPath("appData"), "VencordDesktop", "VencordDesktop"); export const DATA_DIR = PORTABLE