Unverified Commit a46e359f authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #873 from 0mkara/electron_fixes

Electron fixes
parents d3c49f7f 9c981991
......@@ -73,7 +73,8 @@ function Compiler (handleImportCall) {
function onInternalCompilerLoaded () {
if (worker === null) {
var compiler
if (typeof (window) === 'undefined') {
var userAgent = navigator.userAgent.toLowerCase()
if (typeof (window) === 'undefined' || userAgent.indexOf(' electron/') > -1) {
compiler = require('solc')
} else {
compiler = solc(window.Module)
......
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