Make sure docker and code works
This commit is contained in:
parent
817069ae2e
commit
c1b1f92b80
2 changed files with 5 additions and 2 deletions
|
|
@ -1,8 +1,11 @@
|
||||||
import { HeaderRoute } from "../components/HeaderRoute";
|
import { HeaderRoute } from "../components/HeaderRoute";
|
||||||
|
import { setTransport } from "../util/transports";
|
||||||
interface Window {
|
interface Window {
|
||||||
__uv$config: any;
|
__uv$config: any;
|
||||||
}
|
}
|
||||||
export function Radon() {
|
export function Radon() {
|
||||||
|
//make sure there is a transport set
|
||||||
|
setTransport();
|
||||||
return (
|
return (
|
||||||
<HeaderRoute>
|
<HeaderRoute>
|
||||||
<iframe
|
<iframe
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ function changeTransport(transport: string, wispUrl: string) {
|
||||||
console.log("Setting transport to Libcurl");
|
console.log("Setting transport to Libcurl");
|
||||||
SetTransport("CurlMod.LibcurlClient", {
|
SetTransport("CurlMod.LibcurlClient", {
|
||||||
wisp: wispUrl,
|
wisp: wispUrl,
|
||||||
wasm: "https://cdn.jsdelivr.net/npm/libcurl.js@v0.6.4/libcurl.wasm"
|
wasm: "https://cdn.jsdelivr.net/npm/libcurl.js@v0.5.3/libcurl.wasm"
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "bare":
|
case "bare":
|
||||||
|
|
@ -36,7 +36,7 @@ function changeTransport(transport: string, wispUrl: string) {
|
||||||
default:
|
default:
|
||||||
SetTransport("CurlMod.LibcurlClient", {
|
SetTransport("CurlMod.LibcurlClient", {
|
||||||
wisp: wispUrl,
|
wisp: wispUrl,
|
||||||
wasm: "https://cdn.jsdelivr.net/npm/libcurl.js@v0.6.4/libcurl.wasm"
|
wasm: "https://cdn.jsdelivr.net/npm/libcurl.js@v0.5.3/libcurl.wasm"
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue