mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-05-25 11:38:43 +09:00
Merge pull request #49 from milos-dukic/service-worker-error-fix
Fix "Failed to get a ServiceWorkerRegistration" error
This commit is contained in:
@@ -60,7 +60,7 @@ export default class extends Controller {
|
||||
}
|
||||
|
||||
get #serviceWorkerRegistration() {
|
||||
return navigator.serviceWorker.getRegistration(window.location.host)
|
||||
return navigator.serviceWorker.getRegistration(window.location.origin)
|
||||
}
|
||||
|
||||
#registerServiceWorker() {
|
||||
|
||||
Reference in New Issue
Block a user