2019-02-06 23:04:39 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2019-09-15 12:22:43 +02:00
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
2020-08-12 11:42:42 +02:00
|
|
|
<meta name="application-name" content="Hydrogen Chat"/>
|
2019-09-15 14:32:12 +02:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
2020-08-12 11:42:42 +02:00
|
|
|
<meta name="apple-mobile-web-app-title" content="Hydrogen Chat">
|
2019-09-15 14:32:12 +02:00
|
|
|
<meta name="description" content="A matrix chat application">
|
2020-10-15 11:17:33 +02:00
|
|
|
<link rel="apple-touch-icon" href="assets/icon-maskable.png">
|
2019-06-16 15:21:20 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="src/ui/web/css/main.css">
|
2020-08-12 16:41:03 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="src/ui/web/css/themes/element/theme.css" title="Element Theme">
|
|
|
|
<link rel="alternate stylesheet" type="text/css" href="src/ui/web/css/themes/bubbles/theme.css" title="Bubbles Theme">
|
2019-02-06 23:04:39 +01:00
|
|
|
</head>
|
2020-08-12 11:42:42 +02:00
|
|
|
<body class="hydrogen">
|
2020-03-23 22:46:31 +01:00
|
|
|
<script id="version" type="disabled">
|
2020-08-12 11:42:42 +02:00
|
|
|
window.HYDROGEN_VERSION = "%%VERSION%%";
|
2020-10-02 19:54:24 +02:00
|
|
|
window.HYDROGEN_GLOBAL_HASH = "%%GLOBAL_HASH%%";
|
2019-09-15 14:32:12 +02:00
|
|
|
</script>
|
|
|
|
<script id="main" type="module">
|
2020-08-12 11:49:42 +02:00
|
|
|
import {main} from "./src/main.js";
|
2020-08-27 13:24:04 +02:00
|
|
|
main(document.body, {
|
2020-09-10 18:41:23 +02:00
|
|
|
worker: "src/worker.js",
|
|
|
|
olm: {
|
|
|
|
wasm: "lib/olm/olm.wasm",
|
|
|
|
legacyBundle: "lib/olm/olm_legacy.js",
|
|
|
|
wasmBundle: "lib/olm/olm.js",
|
|
|
|
}
|
2020-08-27 13:24:04 +02:00
|
|
|
});
|
2019-02-10 21:25:29 +01:00
|
|
|
</script>
|
2020-10-15 11:49:09 +02:00
|
|
|
<script id="service-worker" type="module">
|
2019-09-15 14:32:12 +02:00
|
|
|
if('serviceWorker' in navigator) {
|
|
|
|
navigator.serviceWorker.register('sw.js')
|
2020-10-15 11:49:09 +02:00
|
|
|
.then(function(registration) {
|
|
|
|
console.log("Service Worker registered");
|
|
|
|
registration.onupdatefound = function() {
|
|
|
|
const newWorker = registration.installing;
|
|
|
|
alert("update found!");
|
|
|
|
newWorker.onstatechange = function() {
|
|
|
|
if (newWorker.state === "installed") {
|
|
|
|
alert("new worker is now on state " + newWorker.state);
|
|
|
|
// if (confirm("update installed! shall I skip waiting?")) {
|
|
|
|
// newWorker.skipWaiting();
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
});
|
2019-09-15 14:32:12 +02:00
|
|
|
}
|
2020-08-13 17:59:10 +02:00
|
|
|
</script>
|
2019-02-06 23:04:39 +01:00
|
|
|
</body>
|
2019-02-26 22:45:58 +01:00
|
|
|
</html>
|