Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hrueger committed Dec 7, 2022
1 parent 1e063a1 commit c3fedd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parent-process/workerPlatform/workerThreads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import * as path from 'path'
const WorkerThreads = getWorkerThreads()

const DEFAULT_ELECTRON_LOADER = path.join(__dirname, '../../js/asar-loader.js')
let needsCustomElectronLoader = false;
const electronVersion = (process.versions as any).electron as string;
let needsCustomElectronLoader = false
const electronVersion = (process.versions as any).electron as string
if (electronVersion && DEFAULT_ELECTRON_LOADER.match(/.asar(\/|\\)/)) {
// we are running in electron and from inside an asar file
// electron versions below 17.3 need this manual loader
const [major, minor] = electronVersion.split('.').map((x) => parseInt(x, 10))
if (major < 17 || (major === 17 && minor < 3)) {
needsCustomElectronLoader = true;
needsCustomElectronLoader = true
}
}

Expand Down

0 comments on commit c3fedd5

Please sign in to comment.