Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
11
electron/node_modules/electron-is-dev/index.js
generated
vendored
Normal file
11
electron/node_modules/electron-is-dev/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
const electron = require('electron');
|
||||
|
||||
if (typeof electron === 'string') {
|
||||
throw new TypeError('Not running in an Electron environment!');
|
||||
}
|
||||
|
||||
const isEnvSet = 'ELECTRON_IS_DEV' in process.env;
|
||||
const getFromEnv = Number.parseInt(process.env.ELECTRON_IS_DEV, 10) === 1;
|
||||
|
||||
module.exports = isEnvSet ? getFromEnv : !electron.app.isPackaged;
|
||||
Loading…
Add table
Add a link
Reference in a new issue