@novely/core 0.30.2 → 0.30.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.global.js +3 -3
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +63 -63
package/dist/index.global.js
CHANGED
|
@@ -1209,13 +1209,13 @@ var Novely = (() => {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
return current;
|
|
1211
1211
|
};
|
|
1212
|
-
const exit = (force = false) => {
|
|
1212
|
+
const exit = (force = false, saving = true) => {
|
|
1213
1213
|
if (interacted > 1 && !force && askBeforeExit) {
|
|
1214
1214
|
renderer.ui.showExitPrompt();
|
|
1215
1215
|
return;
|
|
1216
1216
|
}
|
|
1217
1217
|
const ctx = renderer.getContext(MAIN_CONTEXT_KEY);
|
|
1218
|
-
if (interacted > 0) {
|
|
1218
|
+
if (interacted > 0 && saving) {
|
|
1219
1219
|
save("auto");
|
|
1220
1220
|
}
|
|
1221
1221
|
const stack = useStack(ctx);
|
|
@@ -1544,7 +1544,7 @@ var Novely = (() => {
|
|
|
1544
1544
|
end({ ctx }) {
|
|
1545
1545
|
if (ctx.meta.preview)
|
|
1546
1546
|
return;
|
|
1547
|
-
exit(true);
|
|
1547
|
+
exit(true, false);
|
|
1548
1548
|
},
|
|
1549
1549
|
input({ ctx, data: data2, forward }, [question, onInput, setup]) {
|
|
1550
1550
|
ctx.input(
|