Merge pull request #1172 from subtly/patch-4

fix for electron w/dynamic loading of solcjson
pull/5370/head
yann300 6 years ago committed by GitHub
commit 3138aa6c02
  1. 2
      remix-solidity/src/compiler/compiler.js

@ -74,7 +74,7 @@ function Compiler (handleImportCall) {
if (worker === null) {
var compiler
var userAgent = (typeof (navigator) !== 'undefined') && navigator.userAgent ? navigator.userAgent.toLowerCase() : '-'
if (typeof (window) === 'undefined' || userAgent.indexOf(' electron/') > -1) {
if (typeof (window) === 'undefined') {
compiler = require('solc')
} else {
compiler = solc(window.Module)

Loading…
Cancel
Save