Merge pull request #100 from ethereum/fixwindow

Fix undefined window in worker.
pull/1/head
chriseth 9 years ago committed by GitHub
commit 5ce87fd310
  1. 4
      src/app/compiler-worker.js

@ -7,12 +7,12 @@ module.exports = function (self) {
var data = e.data;
switch (data.cmd) {
case 'loadVersion':
delete window.Module;
delete self.Module;
version = null;
compileJSON = null;
self.importScripts(data.data);
var Module = window.Module;
var Module = self.Module;
version = Module.cwrap('version', 'string', []);
if ('_compileJSONCallback' in Module) {

Loading…
Cancel
Save