Unverified Commit a86f011d by Vincent Mühler Committed by GitHub

Merge pull request #599 from goooseman/fix/electron-env

fix env to work in electron correctly
parents 8609b25a c04ecdc4
......@@ -22,10 +22,10 @@ function initialize() {
// check for isBrowser() first to prevent electron renderer process
// to be initialized with wrong environment due to isNodejs() returning true
if (isBrowser()) {
setEnv(createBrowserEnv())
return setEnv(createBrowserEnv())
}
if (isNodejs()) {
setEnv(createNodejsEnv())
return setEnv(createNodejsEnv())
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment