aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-15 14:55:09 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-15 14:55:09 -0800
commit6334c3dd9814ef4174baadd0a4ecfed572596b72 (patch)
tree1ca0f6c99f7f0ef0fda7307e306d4e2124c9754f
parent928e43767281fcb92102a02ae55bf53087d96ac0 (diff)
clear status when proxied worker first responds
-rw-r--r--src/proxyClient.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/proxyClient.js b/src/proxyClient.js
index 21208116..2d1c76fe 100644
--- a/src/proxyClient.js
+++ b/src/proxyClient.js
@@ -28,7 +28,14 @@ window.requestAnimationFrame = window.requestAnimationFrame || window.mozRequest
var worker = new Worker('{{{ filename }}}.js');
+var workerResponded = false;
+
worker.onmessage = function worker_onmessage(event) {
+ if (!workerResponded) {
+ workerResponded = true;
+ if (Module.setStatus) Module.setStatus('');
+ }
+
var data = event.data;
switch (data.target) {
case 'stdout': {