mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
ensure the emscripten websocket url is set properly
This commit is contained in:
parent
2be1e0cd4b
commit
9f033fc848
4 changed files with 8 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue