DRY up logic to check if native modules should be loaded
This commit is contained in:
parent
90964290a6
commit
5cf4995f2e
4 changed files with 55 additions and 48 deletions
|
@ -89,6 +89,8 @@ if (global.isCi) {
|
|||
})
|
||||
}
|
||||
|
||||
global.nativeModulesEnabled = process.platform !== 'win32' || process.execPath.toLowerCase().indexOf('\\out\\d\\') === -1
|
||||
|
||||
// Register app as standard scheme.
|
||||
global.standardScheme = 'app'
|
||||
global.zoomScheme = 'zoom'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue