71 lines
2.4 KiB
HTML
Executable File
71 lines
2.4 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>SecureNotes</title>
|
|
<meta charset="utf8" />
|
|
<meta name="Description" content="Notes app" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
<link rel="manifest" href="./manifest.webmanifest" />
|
|
<!-- <link rel="shortcut icon" href="/public/icon-72x72.png"> -->
|
|
|
|
<!-- Add to home screen for Safari on iOS -->
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
<meta name="apple-mobile-web-app-title" content="Secure Notes" />
|
|
|
|
<!-- sizes="180x180" -->
|
|
<!-- href="/public/apple-touch-icon.png" -->
|
|
|
|
<link
|
|
rel="apple-touch-icon"
|
|
sizes="256x256"
|
|
href="/public/notepad256.png"
|
|
/>
|
|
<!-- <link
|
|
rel="mask-icon"
|
|
href="/public/safari-pinned-tab.svg"
|
|
color="#1E88E5"
|
|
/> -->
|
|
<meta name="msapplication-TileColor" content="#1E88E5" />
|
|
<meta name="theme-color" content="#1E88E5" />
|
|
</head>
|
|
|
|
<body>
|
|
<noscript> You have to enable JavaScript to use this site! </noscript>
|
|
<div id="app"></div>
|
|
<script>
|
|
if (navigator.serviceWorker.controller) {
|
|
if (localStorage.getItem("debug")) {
|
|
console.warn(
|
|
"Debuggung and service worker found, make shure to clear cache!"
|
|
);
|
|
}
|
|
console.log("active service worker found, no need to register");
|
|
} else {
|
|
if (localStorage.getItem("debug")) {
|
|
console.warn("Disabling Service Worker in debug mode!");
|
|
} else {
|
|
// Register the ServiceWorker
|
|
navigator.serviceWorker
|
|
.register("serviceworker.js", {
|
|
scope: "/",
|
|
})
|
|
.then(function (reg) {
|
|
console.log(
|
|
"Service worker has been registered for scope:" +
|
|
reg.scope
|
|
);
|
|
navigator.serviceWorker.controller.addEventListener(
|
|
"cleared_cache",
|
|
(evt) => {
|
|
console.log(evt);
|
|
}
|
|
);
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
<script src="index.tsx"></script>
|
|
</body>
|
|
</html>
|