mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
reload anyway
This commit is contained in:
@@ -564,7 +564,7 @@ export default class Header extends TranslatedComponent {
|
|||||||
async update() {
|
async update() {
|
||||||
const reg = await navigator.serviceWorker.getRegistration();
|
const reg = await navigator.serviceWorker.getRegistration();
|
||||||
if (!reg || !reg.waiting) {
|
if (!reg || !reg.waiting) {
|
||||||
return;
|
return window.location.reload();
|
||||||
}
|
}
|
||||||
reg.waiting.postMessage('skipWaiting');
|
reg.waiting.postMessage('skipWaiting');
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
|||||||
Reference in New Issue
Block a user