change portable check string for windows
This commit is contained in:
parent
c65e9c4f2c
commit
855c454018
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ const vesktopDir = dirname(process.execPath);
|
||||||
export const PORTABLE =
|
export const PORTABLE =
|
||||||
process.platform === "win32" &&
|
process.platform === "win32" &&
|
||||||
!readdirSync(vesktopDir).includes("Uninstall Vesktop.exe") &&
|
!readdirSync(vesktopDir).includes("Uninstall Vesktop.exe") &&
|
||||||
!process.execPath.endsWith("electron");
|
!process.execPath.endsWith("electron.exe");
|
||||||
|
|
||||||
const LEGACY_DATA_DIR = join(app.getPath("appData"), "VencordDesktop", "VencordDesktop");
|
const LEGACY_DATA_DIR = join(app.getPath("appData"), "VencordDesktop", "VencordDesktop");
|
||||||
export const DATA_DIR = PORTABLE
|
export const DATA_DIR = PORTABLE
|
||||||
|
|
Reference in a new issue