Skip to content

Commit

Permalink
fix sv file on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfbrito committed Oct 23, 2023
1 parent 03f711a commit 2dfba7d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/servers/supportedVersions/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ export function decode(token: string) {

export async function readBuiltinSupportedVersions(): Promise<SupportedVersions | null> {
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'
Expand Down

0 comments on commit 2dfba7d

Please sign in to comment.