Merge pull request #58 from Samler-Lee/main

This commit is contained in:
tiago
2025-06-28 12:11:05 +01:00
committed by GitHub
+2 -2
View File
@@ -29,10 +29,10 @@ For the floating mode, use:
<script src="https://<server url>/assets/floating.js"></script>
```
And by setting `window.CAP_CUSTOM_WASM_URL` to the path of the `cap_wasm_bg.wasm` file, like this:
And by setting `window.CAP_CUSTOM_WASM_URL` to the path of the `cap_wasm.js` file, like this:
```js
window.CAP_CUSTOM_WASM_URL = "https://<server url>/assets/cap_wasm_bg.wasm";
window.CAP_CUSTOM_WASM_URL = "https://<server url>/assets/cap_wasm.js";
```
By default, these fetch from `process.env.CACHE_HOST` (which defaults to `https://cdn.jsdelivr.net`). You can change this by setting the `CACHE_HOST` env variable when running the server.