[ui] DaySentence: Her folded petal, the words and their source; the library bundled after validation
This commit is contained in:
@@ -49,8 +49,8 @@
|
||||
const file = input.files?.[0];
|
||||
if (!file) return;
|
||||
try {
|
||||
const { added } = await wiring.importRose(JSON.parse(await file.text()), currentKey);
|
||||
said = added === 0 ? en.rose.safe.alreadyHere : en.rose.safe.broughtBack(added);
|
||||
const { added, petals } = await wiring.importRose(JSON.parse(await file.text()), currentKey);
|
||||
said = added === 0 && petals === 0 ? en.rose.safe.alreadyHere : en.rose.safe.broughtBack(added);
|
||||
onrestored();
|
||||
} catch (error) {
|
||||
// A wrong file is an ordinary thing to choose; the player is told calmly, the console fully.
|
||||
|
||||
Reference in New Issue
Block a user