feat(mobile,pwa): implement responsive viewport, mobile drawer and pwa support
Deploy Development / deploy (push) Successful in 20s
Deploy Development / deploy (push) Successful in 20s
This commit is contained in:
1 parent
83177f31f8
commit
5c99ce6f22
11 files changed
+367
-12
No files matched your search
@@ -66,4 +66,11 @@
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
// 3. PWA Service Worker Registrierung
|
||||
if ( 'serviceWorker' in navigator && ( window.location.protocol === 'https:' || window.location.hostname === 'localhost' || window.location.hostname === '192.168.2.49' ) ) {
|
||||
window.addEventListener( 'load', function () {
|
||||
navigator.serviceWorker.register( '/sw.js' ).catch( function () {} );
|
||||
} );
|
||||
}
|
||||
}() );
|
||||
Reference in new issue
Block a user