|
@@ -6,6 +6,7 @@
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>KTV Manager</title>
|
|
<title>KTV Manager</title>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
<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') }}">
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
|
|
|
|
@@ -58,5 +59,19 @@
|
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.0.7/dist/umd/popper.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.0.7/dist/umd/popper.min.js"></script>
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
|
<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);
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ </script>
|
|
|
|
+
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|