Fix: SW-Update nuklear (unregister all), touch-action pan-y für Scroll, /force-update Route, Geburtstags-KI user_id, konto-loeschen Import (SW by-v791)
This commit is contained in:
parent
f73a2bdeab
commit
97a03ce006
12 changed files with 69 additions and 15 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '786'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '791'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.5.0'; // ← semantische Version, wird bei make release gesetzt
|
||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
||||
|
|
@ -978,8 +978,7 @@ const App = (() => {
|
|||
|
||||
// ----------------------------------------------------------
|
||||
// ----------------------------------------------------------
|
||||
// VERSION-CHECK — persistentes Banner wenn neue Version verfügbar
|
||||
// ----------------------------------------------------------
|
||||
// VERSION-CHECK
|
||||
let _updateBannerShown = false;
|
||||
|
||||
async function _checkVersion() {
|
||||
|
|
@ -1050,16 +1049,14 @@ const App = (() => {
|
|||
const btn = banner.querySelector('#upd-btn-reload');
|
||||
btn.textContent = 'Lädt…';
|
||||
btn.disabled = true;
|
||||
sessionStorage.setItem('by_update_reload', APP_VER);
|
||||
// ?_t= Timestamp zwingt iOS bfcache zur Aufgabe — wird beim Start sofort entfernt
|
||||
setTimeout(() => location.replace('/?_t=' + Date.now()), 800);
|
||||
try {
|
||||
const reg = await navigator.serviceWorker?.getRegistration();
|
||||
if (reg?.waiting) reg.waiting.postMessage({ type: 'SKIP_WAITING' });
|
||||
reg?.update().catch(() => {}); // kein await — kann hängen
|
||||
// Alle SW deregistrieren + alle Caches löschen → sauberer Neustart
|
||||
const regs = await navigator.serviceWorker?.getRegistrations() ?? [];
|
||||
await Promise.all(regs.map(r => r.unregister()));
|
||||
const keys = await caches.keys();
|
||||
await Promise.all(keys.map(k => caches.delete(k)));
|
||||
} catch { /* ignorieren */ }
|
||||
location.replace('/?_t=' + Date.now());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -741,7 +741,7 @@ window.Worlds = (() => {
|
|||
border-radius:16px;padding:10px 4px 8px;height:80px;box-sizing:border-box;
|
||||
display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
|
||||
cursor:grab;position:relative;min-width:0;overflow:hidden;
|
||||
user-select:none;-webkit-tap-highlight-color:transparent;touch-action:none">
|
||||
user-select:none;-webkit-tap-highlight-color:transparent;touch-action:pan-y">
|
||||
${!c.pinned ? `
|
||||
<button class="wc-remove" data-page="${c.page}" data-zone="${w}"
|
||||
style="position:absolute;top:-10px;right:-10px;width:30px;height:30px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue