mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
support latest emscripten and detect emcc version changes
This commit is contained in:
parent
627fd15e4d
commit
b2df01fd18
7 changed files with 30 additions and 11 deletions
|
@ -45,6 +45,8 @@ function set_websocket_url(url) {
|
|||
websocket_url = url;
|
||||
if (typeof Module.websocket === "undefined")
|
||||
Module.websocket = {};
|
||||
if (typeof SOCKFS.websocketArgs !== "undefined")
|
||||
SOCKFS.websocketArgs.url = url;
|
||||
Module.websocket.url = url;
|
||||
if (!main_session && wasm_ready) {
|
||||
setup_main_session();
|
||||
|
@ -101,7 +103,7 @@ function load_wasm(url) {
|
|||
if (wasm_ready) return;
|
||||
|
||||
//skip this if we are running in single file mode
|
||||
if (!isDataURI(wasmBinaryFile)) {
|
||||
if (!wasmBinaryFile || !isDataURI(wasmBinaryFile)) {
|
||||
wasmBinaryFile = url;
|
||||
createWasm();
|
||||
run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue