main
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
require('./bootstrap');
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('/service-worker.js')
|
||||
.then(function(registration) {
|
||||
console.log('Service Worker registered with scope:', registration.scope);
|
||||
})
|
||||
.catch(function(error) {
|
||||
console.error('Service Worker registration failed:', error);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user