|
@@ -6,7 +6,12 @@
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
<title>KTV Manager</title>
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
|
- <link rel="manifest" href="{{ url_for('static', filename='manifest.json') }}">
|
|
|
+ <link rel="icon" type="image/png" href="{{ url_for('static', filename='favicon-96x96.png') }}" sizes="96x96" />
|
|
|
+ <link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='favicon.svg') }}" />
|
|
|
+ <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" />
|
|
|
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ url_for('static', filename='apple-touch-icon.png') }}" />
|
|
|
+ <meta name="apple-mobile-web-app-title" content="kTvManager" />
|
|
|
+ <link rel="manifest" href="{{ url_for('static', filename='site.webmanifest') }}" />
|
|
|
</head>
|
|
|
<body>
|
|
|
|
|
@@ -61,17 +66,13 @@
|
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
|
|
<script>
|
|
|
if ('serviceWorker' in navigator) {
|
|
|
- window.addEventListener('load', function() {
|
|
|
- navigator.serviceWorker.register("{{ url_for('static', filename='service-worker.js') }}")
|
|
|
- .then(function(registration) {
|
|
|
- console.log('Service Worker registered with scope: ', registration.scope);
|
|
|
- })
|
|
|
- .catch(function(error) {
|
|
|
- console.log('Service Worker registration failed: ', error);
|
|
|
- });
|
|
|
- });
|
|
|
+ navigator.serviceWorker.register('{{ url_for("static", filename="service-worker.js") }}')
|
|
|
+ // .then(reg => {
|
|
|
+ // console.log('Service worker:', reg);
|
|
|
+ // .catch(err => {
|
|
|
+ // console.log('Service worker:', err);
|
|
|
+ // });
|
|
|
}
|
|
|
- </script>
|
|
|
-
|
|
|
+ </script>
|
|
|
</body>
|
|
|
</html>
|