diff options
Diffstat (limited to 'src/library_browser.js')
-rw-r--r-- | src/library_browser.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index 4c26037e..ce59dbdd 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -223,7 +223,8 @@ mergeInto(LibraryManager.library, { var wrapper = function() { if (Browser.mainLoop.queue.length > 0) { Browser.mainLoop.queue.shift()(); - Browser.mainLoop.scheduler(); + if (Browser.mainLoop.queue.length == 0 && Module['setStatus']) Module['setStatus'](''); + setTimeout(wrapper, 0); return; } if (Browser.mainLoop.shouldPause) { @@ -267,6 +268,7 @@ mergeInto(LibraryManager.library, { }, emscripten_push_main_loop_blocker: function(func) { + if (Module['setStatus']) Module['setStatus']('Please wait..'); Browser.mainLoop.queue.push(FUNCTION_TABLE[func]); }, |