mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-04-08 22:17:49 +09:00
Update app/javascript/controllers/notifications_controller.js
Co-authored-by: Chris Oliver <excid3@gmail.com>
This commit is contained in:
@@ -60,8 +60,7 @@ export default class extends Controller {
|
||||
}
|
||||
|
||||
get #serviceWorkerRegistration() {
|
||||
const hostAndProtocol = window.location.protocol + '//' + window.location.host;
|
||||
return navigator.serviceWorker.getRegistration(hostAndProtocol)
|
||||
return navigator.serviceWorker.getRegistration(window.location.origin)
|
||||
}
|
||||
|
||||
#registerServiceWorker() {
|
||||
|
||||
Reference in New Issue
Block a user