Various improvements for usability and consistency and inclusion of PWA handling.
This commit is contained in:
9
data/www/js/pwa.js
Normal file
9
data/www/js/pwa.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(function () {
|
||||
if (!('serviceWorker' in navigator)) return;
|
||||
|
||||
window.addEventListener('load', function () {
|
||||
navigator.serviceWorker.register('/service-worker.js').catch(function (error) {
|
||||
console.warn('PWA service worker registration failed:', error);
|
||||
});
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user