omegaupload/web/dist/index.html

41 lines
1.5 KiB
HTML
Raw Normal View History

2021-10-16 09:50:11 -07:00
<!DOCTYPE html><html><head>
<meta charset="utf-8">
2021-10-17 14:15:29 -07:00
<title>Omegaupload</title>
2021-10-19 18:48:32 -07:00
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/github-dark.min.css">
2021-10-19 02:18:33 -07:00
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script>
2021-10-19 18:48:32 -07:00
<style>
body {
margin: 0;
}
</style>
2021-10-16 09:50:11 -07:00
2021-10-19 18:48:32 -07:00
<link rel="preload" href="/index-c5eae97b1d11880a_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="modulepreload" href="/index-c5eae97b1d11880a.js"></head>
2021-10-16 09:50:11 -07:00
2021-10-19 18:48:32 -07:00
<body><script type="module">import init from '/index-c5eae97b1d11880a.js';init('/index-c5eae97b1d11880a_bg.wasm');</script><script>(function () {
2021-10-16 09:50:11 -07:00
var url = 'ws://' + 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>