Fix: iOS bfcache — ?_t=timestamp bei Update-Reload, wird sofort aus URL entfernt (SW by-v770)
This commit is contained in:
parent
572fbf642f
commit
a1e5364f25
5 changed files with 11 additions and 10 deletions
|
|
@ -764,11 +764,11 @@ window.Page_settings = (() => {
|
|||
if (serverVersion && serverVersion !== localVersion) {
|
||||
if (reg?.waiting) reg.waiting.postMessage({ type: 'SKIP_WAITING' });
|
||||
UI.toast.info(`Update auf v${serverVersion} — Seite wird neu geladen…`);
|
||||
setTimeout(() => location.replace('/'), 1500);
|
||||
setTimeout(() => location.replace('/?_t=' + Date.now()), 1500);
|
||||
} else if (reg?.waiting) {
|
||||
reg.waiting.postMessage({ type: 'SKIP_WAITING' });
|
||||
UI.toast.success('Update wird installiert…');
|
||||
setTimeout(() => location.replace('/'), 1500);
|
||||
setTimeout(() => location.replace('/?_t=' + Date.now()), 1500);
|
||||
} else {
|
||||
UI.toast.success(`Ban Yaro ist aktuell — Build ${localVersion}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue