Commit 257541e8 authored by Iuri Matias's avatar Iuri Matias

remove solc require which is causing issues with browserify

parent ef01fe25
...@@ -72,12 +72,7 @@ function Compiler (handleImportCall) { ...@@ -72,12 +72,7 @@ function Compiler (handleImportCall) {
function onInternalCompilerLoaded () { function onInternalCompilerLoaded () {
if (worker === null) { if (worker === null) {
var compiler var compiler = solc(window.Module)
if (typeof (window) === 'undefined') {
compiler = require('solc')
} else {
compiler = solc(window.Module)
}
compileJSON = function (source, optimize, cb) { compileJSON = function (source, optimize, cb) {
var missingInputs = [] var missingInputs = []
......
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