ensure the emscripten websocket url is set properly

This commit is contained in:
ading2210 2024-07-11 02:28:25 -07:00
parent 2be1e0cd4b
commit 9f033fc848
4 changed files with 8 additions and 4 deletions

View file

@ -43,9 +43,9 @@ function check_loaded(check_websocket) {
}
function set_websocket_url(url) {
websocket_url = url;
if (Module.websocket) {
Module.websocket.url = url;
}
if (typeof Module.websocket === "undefined")
Module.websocket = {};
Module.websocket.url = url;
if (!main_session && wasm_ready) {
setup_main_session();
}