From aeb66ab880d445097a33887c6feef8338e340575 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 14 Jun 2016 16:11:54 +0200 Subject: [PATCH] Fix undefined window in worker. --- src/app/compiler-worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/compiler-worker.js b/src/app/compiler-worker.js index c511899e60..6a4cd404be 100644 --- a/src/app/compiler-worker.js +++ b/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) {