Browse Source

Electron Node Env temporarily set conditionally for Linux Only

ca333-dev
Satinder Grewal 8 years ago
parent
commit
516bb2a250
  1. 6
      main.js

6
main.js

@ -19,8 +19,10 @@ Promise = require('bluebird');
app.setName('Iguana');
process.env.ELECTRON_RUN_AS_NODE = true
console.log(process.env);
if (os.platform() === 'linux') {
process.env.ELECTRON_RUN_AS_NODE = true
console.log(process.env);
}
// preload.js
const _setImmediate = setImmediate

Loading…
Cancel
Save