-
fix env to work in electron correctly · c04ecdc4Alexander Gusev authored
The problem is: electron env includes and browser and nodejs together. Therefore, both isBrowser and isNodejs function will return true. The comment in the code mentions, that isBrowser is explictly called first to prevent electron renderer process to be initialized with wrong environment due to isNodejs() returning true. But current code (before the change) executes both isBrowser and isNodejs blocks. This commit resolves the issue.
c04ecdc4
×