|
|
@ -3,7 +3,7 @@ class Setup { |
|
|
this.statusEl = document.createElement("p") |
|
|
this.statusEl = document.createElement("p") |
|
|
document.body.appendChild(this.statusEl) |
|
|
document.body.appendChild(this.statusEl) |
|
|
this.updateStatus() |
|
|
this.updateStatus() |
|
|
addEventListener('controllerchange', () => { |
|
|
navigator.serviceWorker.addEventListener('controllerchange', () => { |
|
|
this.updateStatus() |
|
|
this.updateStatus() |
|
|
}) |
|
|
}) |
|
|
await this.register() |
|
|
await this.register() |
|
|
|