aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-12 19:00:45 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-12 19:00:45 -0700
commit15d0f8bf3db70eaf915f1af0b205d751c9edceaa (patch)
tree0e225555dfb10fe065b730ba6e5e43b364aa9aae /src/postamble.js
parentb9f86b8fa3edc99805b5ace739df9c44ba8dc352 (diff)
nicer html messages during load/startup
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();