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

@ -31,7 +31,7 @@ test('#186 on a phone, play after pause resumes at half speed, not the old game\
test('#186 a saved game still continues at the speed it was saved at', () => {
const a = load();
a.ev("ACT.start({});ACT.speed({v:4});save(true)");
const b = load({ storage: { 'sot-save-v1': a.ev("localStorage.getItem('sot-save-v1')") } });
const b = load({ storage: { 'sot-save-v1': a.ev("slotRaw(UI.slot)") } });
assert.equal(b.ev('UI.speed'), 4);
assert.deepEqual(a.errors, []);
assert.deepEqual(b.errors, []);