40 lines
1.9 KiB
HTML
40 lines
1.9 KiB
HTML
<!DOCTYPE html><html><head>
|
|
<meta charset="utf-8">
|
|
<title>Yew App</title>
|
|
<link rel="stylesheet" href="/body-546d222c63c2d8b.css">
|
|
<link rel="stylesheet" href="/navbar-ae445ce41799b0c9.css">
|
|
<link rel="stylesheet" href="/landing-c920ca43256fdcb9.css">
|
|
<link rel="stylesheet" href="/search-b6fa05ad5c0c5cf2.css">
|
|
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
|
|
<script src="https://kit.fontawesome.com/fcdfdfe1ad.js" crossorigin="anonymous"></script>
|
|
|
|
<link rel="preload" href="/remax-template-frontend-88cf78e1286700d_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
|
|
<link rel="modulepreload" href="/remax-template-frontend-88cf78e1286700d.js"></head>
|
|
<body><script type="module">import init from '/remax-template-frontend-88cf78e1286700d.js';init('/remax-template-frontend-88cf78e1286700d_bg.wasm');</script><script>(function () {
|
|
var protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
|
var url = protocol + '//' + window.location.host + '/_trunk/ws';
|
|
var poll_interval = 5000;
|
|
var reload_upon_connect = () => {
|
|
window.setTimeout(
|
|
() => {
|
|
// when we successfully reconnect, we'll force a
|
|
// reload (since we presumably lost connection to
|
|
// trunk due to it being killed, so it will have
|
|
// rebuilt on restart)
|
|
var ws = new WebSocket(url);
|
|
ws.onopen = () => window.location.reload();
|
|
ws.onclose = reload_upon_connect;
|
|
},
|
|
poll_interval);
|
|
};
|
|
|
|
var ws = new WebSocket(url);
|
|
ws.onmessage = (ev) => {
|
|
const msg = JSON.parse(ev.data);
|
|
if (msg.reload) {
|
|
window.location.reload();
|
|
}
|
|
};
|
|
ws.onclose = reload_upon_connect;
|
|
})()
|
|
</script></body></html> |