mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-12 18:43:47 +00:00
fix(*): Add missing service worker registration
This commit is contained in:
@@ -48,6 +48,14 @@
|
|||||||
window.addEventListener('appinstalled', (evt) => {
|
window.addEventListener('appinstalled', (evt) => {
|
||||||
console.log('a2hs', 'appinstalled', evt);
|
console.log('a2hs', 'appinstalled', evt);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (window.matchMedia('(display-mode: standalone)').matches) {
|
||||||
|
installButton.style.display = 'none';
|
||||||
|
}
|
||||||
|
|
||||||
|
window.addEventListener('load', () => {
|
||||||
|
navigator.serviceWorker.register('%sveltekit.assets%/service-worker.js');
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user