better check
This commit is contained in:
parent
a6cd1b1797
commit
6bc278ec71
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue