We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0beae0a commit 12fbb69Copy full SHA for 12fbb69
1 file changed
styles/all/template/update_worker.js
@@ -2,7 +2,7 @@
2
3
function webpushWorkerUpdate() {
4
if ('serviceWorker' in navigator) {
5
- navigator.serviceWorker.register(serviceWorkerUrl)
+ navigator.serviceWorker.getRegistration(serviceWorkerUrl)
6
.then((registration) => {
7
registration.update();
8
})
0 commit comments