From 516bb2a25080ed2c447ec2902bb2bdffbc5b5395 Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Sun, 15 Jan 2017 11:54:43 +1300 Subject: [PATCH] Electron Node Env temporarily set conditionally for Linux Only --- main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index fb9eee7..a8e084e 100644 --- a/main.js +++ b/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