From 2dfba7d9ccf262e44c7e177f4e39aa09c953cc20 Mon Sep 17 00:00:00 2001 From: Jean Brito Date: Mon, 23 Oct 2023 17:37:46 -0300 Subject: [PATCH] fix sv file on windows --- src/servers/supportedVersions/main.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/servers/supportedVersions/main.ts b/src/servers/supportedVersions/main.ts index b9e794129..16e02eb72 100644 --- a/src/servers/supportedVersions/main.ts +++ b/src/servers/supportedVersions/main.ts @@ -47,12 +47,7 @@ export function decode(token: string) { export async function readBuiltinSupportedVersions(): Promise { try { - let filePath; - if (process.env.NODE_ENV === 'development') { - filePath = path.join(__dirname, 'supportedVersions.jwt'); - } else { - filePath = path.join(app.getAppPath(), 'supportedVersions.jwt'); - } + const filePath = path.join(__dirname, 'supportedVersions.jwt'); const builtinSupportedVersionsJWT = await fs.promises.readFile( filePath, 'utf8'