Skip to content

Commit

Permalink
Fix mistake in 0.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 29, 2021
1 parent 6d2e136 commit e46e527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/is-using-asar.js
Expand Up @@ -2,4 +2,4 @@

const isElectron = 'electron' in process.versions;

module.exports = isElectron && require.main && require.main.filename.includes('app.asar');
module.exports = isElectron && require.main && require.main.filename && require.main.filename.includes('app.asar');

0 comments on commit e46e527

Please sign in to comment.