Save slots: several networks per browser, one per window, with a cross-window guard

This commit is contained in:
Frederic Jung 2026-10-28 20:52:47 +01:00
parent 39ef7c13bb
commit da8150b7c4
No known key found for this signature in database
29 changed files with 595 additions and 124 deletions

View file

@ -27,7 +27,7 @@ test('changing the dropdown in Settings switches language and keeps the game', (
const { ev, errors } = load();
ev("ACT.start({});dayTick();ACT.settings();const s=document.getElementById('langSel');s.value='fr';s.dispatchEvent(new Event('change',{bubbles:true}))");
assert.equal(ev("localStorage.getItem('sot-lang')"), 'fr');
assert.ok(ev("localStorage.getItem('sot-save-v1')"), 'saved before reloading');
assert.ok(ev("slotRaw(UI.slot)"), 'saved before reloading');
assert.deepEqual(errors, []);
});