Fix: Referral-Code überlebt App-Schließen (localStorage statt sessionStorage)
Werben-Zuordnung ging verloren, wenn die geworbene Person den ?ref=-Link öffnete, die App schloss und sich erst später registrierte (sessionStorage flüchtig, v.a. iOS-PWA). Jetzt: Code früh in boot.js nach localStorage (vor evtl. SW-Reload, der die URL ersetzt), 30-Tage-Ablauf, Löschung nach Registrierung. SW v1169 Datenkorrektur separat: nacho_sarah Angie (id=4) als 2. Werbung zugeordnet.
This commit is contained in:
parent
7945087a6c
commit
3513aeadb0
7 changed files with 56 additions and 22 deletions
|
|
@ -4,7 +4,7 @@
|
|||
============================================================ */
|
||||
|
||||
// ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab
|
||||
const VER = '1168';
|
||||
const VER = '1169';
|
||||
const CACHE_VERSION = `by-v${VER}`;
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue