Fix undefined window in worker.

pull/1/head
chriseth 9 years ago
parent aa54d3d8b0
commit aeb66ab880
  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