[ui] TwoTabs: The rose and the garden read again when another tab wrote, keeping their own

This commit is contained in:
2026-11-07 15:06:44 +01:00
parent 102ac44675
commit b67fa3603d
7 changed files with 185 additions and 9 deletions
+5 -1
View File
@@ -29,7 +29,9 @@
search: async (query) => (await loadTowns()).searchTowns(query),
load: () => storage.loadSunsetPlace(),
save: (choice) => storage.saveSunsetPlace(choice),
now: () => Date.now()
now: () => Date.now(),
// Another tab of the garden chose a town (two-tabs.md).
changes: (listener) => storage.onChange((what) => what === 'place' && listener())
};
// The player's key names their rose (rose.md). Kept once; if the device will not
@@ -97,6 +99,8 @@
sentences,
loadOpened: () => storage.loadOpened(),
appendOpened: (event) => storage.appendOpened(event),
// Another tab gave care, opened a petal or brought her back (two-tabs.md).
changes: (listener) => storage.onChange((what) => what === 'log' && listener()),
clientVersion: version,
deviceZone,
now: () => Date.now(),