MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / tryToSendPageload

Function tryToSendPageload

src/emrun_postjs.js:86–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 // Notify emrun web server that this browser has successfully launched the
85 // page. Note that we may need to wait for the server to be ready.
86 var tryToSendPageload = () => {
87 try {
88 post('stdio.html', '^pageload^');
89 } catch (e) {
90 setTimeout(tryToSendPageload, 50);
91 }
92 };
93 tryToSendPageload();
94 }
95 };

Callers 1

emrun_register_handlersFunction · 0.85

Calls 1

postFunction · 0.85

Tested by

no test coverage detected