This commit is contained in:
parent
642b9a7fb3
commit
7acde033c9
2 changed files with 21 additions and 1 deletions
20
index.html
20
index.html
|
@ -2,6 +2,10 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="A prettier client for the /tg/station Wiki"
|
||||||
|
/>
|
||||||
<meta name="theme-color" content="#141c26" />
|
<meta name="theme-color" content="#141c26" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
|
@ -49,5 +53,21 @@
|
||||||
<h2>JavaScript support is required to run this app.</h2>
|
<h2>JavaScript support is required to run this app.</h2>
|
||||||
</noscript>
|
</noscript>
|
||||||
<script src="src/index.ts" async></script>
|
<script src="src/index.ts" async></script>
|
||||||
|
<script>
|
||||||
|
if ("serviceWorker" in navigator) {
|
||||||
|
const x = "sw.js";
|
||||||
|
navigator.serviceWorker
|
||||||
|
.register(x)
|
||||||
|
.then(function (registration) {
|
||||||
|
console.log(
|
||||||
|
"Registration successful, scope is:",
|
||||||
|
registration.scope
|
||||||
|
);
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log("Service worker registration failed, error:", error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "/tg/station Handbook",
|
"name": "tgstation Handbook",
|
||||||
"short_name": "tgstationHandbook",
|
"short_name": "tgstationHandbook",
|
||||||
"start_url": ".",
|
"start_url": ".",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
|
|
Reference in a new issue