We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d0a10d commit 3b31a83Copy full SHA for 3b31a83
app/javascript/controllers/notifications_controller.js
@@ -60,7 +60,8 @@ export default class extends Controller {
60
}
61
62
get #serviceWorkerRegistration() {
63
- return navigator.serviceWorker.getRegistration(window.location.host)
+ const hostAndProtocol = window.location.protocol + '//' + window.location.host;
64
+ return navigator.serviceWorker.getRegistration(hostAndProtocol)
65
66
67
#registerServiceWorker() {
0 commit comments