Skip to content

Commit

Permalink
erase Module['onRuntimeInitializeFailed'] after runtime init success (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
buu700 committed Jul 3, 2017
1 parent e845dac commit 45f488e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/postamble.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ function run(args) {
}
#endif

Module['onRuntimeInitializeFailed'] = undefined;

if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();

if (Module['_main'] && shouldRunNow) Module['callMain'](args);
Expand Down

0 comments on commit 45f488e

Please sign in to comment.