Commit e2e3e051 authored by Iuri Matias's avatar Iuri Matias

lint is king

parent b4eb5428
...@@ -72,9 +72,9 @@ function Compiler (handleImportCall) { ...@@ -72,9 +72,9 @@ function Compiler (handleImportCall) {
function onInternalCompilerLoaded () { function onInternalCompilerLoaded () {
if (worker === null) { if (worker === null) {
var compiler; var compiler
if (typeof(window) == 'undefined') { if (typeof (window) === 'undefined') {
compiler = require('solc'); compiler = require('solc')
} else { } else {
compiler = solc(window.Module) compiler = solc(window.Module)
} }
...@@ -100,7 +100,8 @@ function Compiler (handleImportCall) { ...@@ -100,7 +100,8 @@ function Compiler (handleImportCall) {
onCompilerLoaded(compiler.version()) onCompilerLoaded(compiler.version())
} }
} }
this.onInternalCompilerLoaded = onInternalCompilerLoaded; // exposed for use in node // exposed for use in node
this.onInternalCompilerLoaded = onInternalCompilerLoaded
this.lastCompilationResult = { this.lastCompilationResult = {
data: null, data: null,
......
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