Merge pull request #873 from 0mkara/electron_fixes

Electron fixes
pull/7/head
yann300 7 years ago committed by GitHub
commit a46e359f8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      remix-solidity/src/compiler/compiler.js

@ -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)

Loading…
Cancel
Save