diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-12 23:04:32 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-12 23:04:32 -0700 |
commit | 3b0b45be2be74f0bfd49a59812fe84615d90d9d4 (patch) | |
tree | 86f41ef91d1e8798c2e0c7893afd06bae1a28f93 /src/postamble.js | |
parent | 9b5c6ba745f847fdfb57e6606508ed0d58b6633d (diff) |
clear status in html even if doRun exits through an exception
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/postamble.js b/src/postamble.js index 263db773..ea03391c 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -60,8 +60,10 @@ function run(args) { if (Module['setStatus']) { Module['setStatus']('Running...'); setTimeout(function() { + setTimeout(function() { + Module['setStatus'](''); + }, 1); doRun(); - Module['setStatus'](''); }, 1); return 0; } else { |