Commit staged changes
This commit is contained in:
@@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "BSC Score",
|
|
||||||
"short_name": "BSC Score",
|
|
||||||
"description": "Pool Scoring App für den Billard Sport Club",
|
|
||||||
"lang": "de",
|
|
||||||
"start_url": ".",
|
|
||||||
"display": "fullscreen",
|
|
||||||
"background_color": "#1a1a1a",
|
|
||||||
"theme_color": "#000000",
|
|
||||||
"icons": [
|
|
||||||
{
|
|
||||||
"src": "icon-192.png",
|
|
||||||
"sizes": "192x192",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "icon-512.png",
|
|
||||||
"sizes": "512x512",
|
|
||||||
"type": "image/png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
const CACHE_NAME = 'bscscore-v1';
|
|
||||||
const URLS_TO_CACHE = [
|
|
||||||
'/',
|
|
||||||
'/index.html',
|
|
||||||
'/manifest.json',
|
|
||||||
'/favicon.ico',
|
|
||||||
'/icon-192.png',
|
|
||||||
'/icon-512.png'
|
|
||||||
];
|
|
||||||
|
|
||||||
self.addEventListener('install', event => {
|
|
||||||
event.waitUntil(
|
|
||||||
caches.open(CACHE_NAME).then(cache => cache.addAll(URLS_TO_CACHE))
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
self.addEventListener('activate', event => {
|
|
||||||
event.waitUntil(
|
|
||||||
caches.keys().then(keys =>
|
|
||||||
Promise.all(keys.filter(key => key !== CACHE_NAME).map(key => caches.delete(key)))
|
|
||||||
)
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
self.addEventListener('fetch', event => {
|
|
||||||
event.respondWith(
|
|
||||||
caches.match(event.request).then(response =>
|
|
||||||
response || fetch(event.request).catch(() => caches.match('/index.html'))
|
|
||||||
)
|
|
||||||
);
|
|
||||||
});
|
|
||||||
@@ -1,7 +1,3 @@
|
|||||||
---
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
@@ -15,7 +11,6 @@
|
|||||||
<meta name="description" content="BSC Score - Pool Scoring App für den Billard Sport Club">
|
<meta name="description" content="BSC Score - Pool Scoring App für den Billard Sport Club">
|
||||||
<meta name="theme-color" content="#000000">
|
<meta name="theme-color" content="#000000">
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||||
<link rel="manifest" href="manifest.json" />
|
|
||||||
<link rel="apple-touch-icon" href="icon-192.png" />
|
<link rel="apple-touch-icon" href="icon-192.png" />
|
||||||
|
|
||||||
<title>Pool Scoring</title>
|
<title>Pool Scoring</title>
|
||||||
@@ -1275,7 +1270,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script is:inline>
|
||||||
// Screen management
|
// Screen management
|
||||||
const screens = {
|
const screens = {
|
||||||
'new-game-screen': document.getElementById('new-game-screen'),
|
'new-game-screen': document.getElementById('new-game-screen'),
|
||||||
@@ -1739,12 +1734,5 @@
|
|||||||
closeGameCompletionModal();
|
closeGameCompletionModal();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
|
||||||
if ('serviceWorker' in navigator) {
|
|
||||||
window.addEventListener('load', function() {
|
|
||||||
navigator.serviceWorker.register('service-worker.js');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user