Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -112,6 +112,16 @@ def get_weather():
|
|
112 |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
113 |
<meta name="apple-mobile-web-app-title" content="Wetterbericht Seebad Eich">
|
114 |
<title>Wetterbericht Seebad Eich</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
<style>
|
116 |
body {{
|
117 |
font-family: Arial, sans-serif;
|
@@ -195,6 +205,16 @@ def get_weather():
|
|
195 |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
196 |
<meta name="apple-mobile-web-app-title" content="Wetterbericht Seebad Eich">
|
197 |
<title>Wetterbericht Seebad Eich</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
<style>
|
199 |
body {
|
200 |
font-family: Arial, sans-serif;
|
|
|
112 |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
113 |
<meta name="apple-mobile-web-app-title" content="Wetterbericht Seebad Eich">
|
114 |
<title>Wetterbericht Seebad Eich</title>
|
115 |
+
<script>
|
116 |
+
if ('serviceWorker' in navigator) {
|
117 |
+
navigator.serviceWorker.register('/service-worker.js')
|
118 |
+
.then(function(registration) {
|
119 |
+
console.log('Service Worker registered with scope:', registration.scope);
|
120 |
+
}).catch(function(error) {
|
121 |
+
console.log('Service Worker registration failed:', error);
|
122 |
+
});
|
123 |
+
}
|
124 |
+
</script>
|
125 |
<style>
|
126 |
body {{
|
127 |
font-family: Arial, sans-serif;
|
|
|
205 |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
206 |
<meta name="apple-mobile-web-app-title" content="Wetterbericht Seebad Eich">
|
207 |
<title>Wetterbericht Seebad Eich</title>
|
208 |
+
<script>
|
209 |
+
if ('serviceWorker' in navigator) {
|
210 |
+
navigator.serviceWorker.register('service-worker.js')
|
211 |
+
.then(function(registration) {
|
212 |
+
console.log('Service Worker registered with scope:', registration.scope);
|
213 |
+
}).catch(function(error) {
|
214 |
+
console.log('Service Worker registration failed:', error);
|
215 |
+
});
|
216 |
+
}
|
217 |
+
</script>
|
218 |
<style>
|
219 |
body {
|
220 |
font-family: Arial, sans-serif;
|