diff options
Diffstat (limited to 'src/library_browser.js')
-rw-r--r-- | src/library_browser.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index 4ef7c577..6056505d 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -954,9 +954,7 @@ mergeInto(LibraryManager.library, { Browser.mainLoop.method = ''; // just warn once per call to set main loop } - if (Module['preMainLoop']) { - Module['preMainLoop'](); - } + if (Module['preMainLoop']) Module['preMainLoop'](); try { if (typeof arg !== 'undefined') { @@ -973,9 +971,7 @@ mergeInto(LibraryManager.library, { } } - if (Module['postMainLoop']) { - Module['postMainLoop'](); - } + if (Module['postMainLoop']) Module['postMainLoop'](); if (Browser.mainLoop.shouldPause) { // catch pauses from the main loop itself |