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-16 09:50:11 -07:00
|
|
|
|
2021-10-17 14:15:29 -07:00
|
|
|
<link rel="preload" href="/index-8214e6336313b7fe_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
|
|
|
|
<link rel="modulepreload" href="/index-8214e6336313b7fe.js"></head>
|
2021-10-16 09:50:11 -07:00
|
|
|
|
2021-10-17 14:15:29 -07:00
|
|
|
<body><script type="module">import init from '/index-8214e6336313b7fe.js';init('/index-8214e6336313b7fe_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>
|