Skip to content

Commit 8f1a974

Browse files
committed
disable service worker
1 parent e2def98 commit 8f1a974

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/main.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,3 @@ export default class App extends Application {
1414
});
1515
}
1616
}
17-
18-
if ('serviceWorker' in navigator) {
19-
window.addEventListener('load', function() {
20-
navigator.serviceWorker.register('/api/service.js')
21-
.then(registration => {
22-
// Registration was successful
23-
console.log('ServiceWorker registration successful with scope: ', registration.scope);
24-
}).catch(function(err) {
25-
// registration failed :(
26-
console.log('ServiceWorker registration failed: ', err);
27-
});
28-
});
29-
}

0 commit comments

Comments
 (0)