feat: pwa functionality
This commit is contained in:
@@ -6,7 +6,19 @@
|
||||
<title>Madplaner</title>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||
</head>
|
||||
<link rel="manifest" href="{{ url_for('static', filename='manifest.json') }}">
|
||||
<meta name="theme-color" content="#2c3e50">
|
||||
<link rel="apple-touch-icon" href="/static/icons/192.png">
|
||||
<link rel="icon" href="https://fav.farm/%F0%9F%8D%B4">
|
||||
<!-- cache busting for serivce worker -->
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}?v=1.1">
|
||||
</head>
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('/sw.js')
|
||||
.then(() => console.log("Service Worker Registered"));
|
||||
}
|
||||
</script>
|
||||
<body class="bg-gray-50 text-gray-900 font-sans">
|
||||
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
|
||||
Reference in New Issue
Block a user