Commit 5ce87fd3 authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #100 from ethereum/fixwindow

Fix undefined window in worker.
parents 512094bd aeb66ab8
......@@ -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) {
......
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