mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-16 07:30:01 -04:00
add old v0.4 code
This commit is contained in:
parent
582bbd4ecd
commit
9205ae1507
14 changed files with 340 additions and 180 deletions
|
@ -6,7 +6,7 @@
|
|||
<script defer src="./out/libcurl.js" onload="libcurl.load_wasm('/out/libcurl.wasm');"></script>
|
||||
<script>
|
||||
document.addEventListener("libcurl_load", ()=>{
|
||||
libcurl.set_websocket(`wss://${location.hostname}/ws/`);
|
||||
libcurl.set_websocket(location.href.replace("http", "ws"));
|
||||
console.log(`loaded libcurl.js v${libcurl.version.lib}`);
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue