aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/postamble.js b/src/postamble.js
index 24b8e4a1..7a9785c8 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -32,10 +32,6 @@ Module.callMain = function callMain(args) {
function run(args) {
args = args || Module['arguments'];
- if (Module['setStatus']) {
- Module['setStatus'](''); // clear the status from "Downloading.." etc.
- }
-
if (Module['preRun']) {
Module['preRun']();
if (runDependencies > 0) {
@@ -45,6 +41,15 @@ function run(args) {
}
}
+ if (Module['setStatus']) {
+ Module['setStatus']('Running...');
+#if GENERATING_HTML
+ setTimeout(function() {
+ Module['setStatus'](''); // clear 'Running...' after first frame
+ }, 1);
+#endif
+ }
+
var ret = null;
if (Module['_main']) {
preMain();