|
|
@ -12,8 +12,9 @@ customElements.define('m-page-menu', PageMenu) |
|
|
|
|
|
|
|
|
class Setup { |
|
|
class Setup { |
|
|
async run() { |
|
|
async run() { |
|
|
navigator.serviceWorker |
|
|
const sw = navigator.serviceWorker |
|
|
.addEventListener('controllerchange', () => { |
|
|
|
|
|
|
|
|
sw.addEventListener('controllerchange', () => { |
|
|
if (this.registration.active) { |
|
|
if (this.registration.active) { |
|
|
window.location.reload(true) |
|
|
window.location.reload(true) |
|
|
} |
|
|
} |
|
|
|