[ui] TwoTabs: The rose and the garden read again when another tab wrote, keeping their own
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user