fix: 优化自动存档时机

This commit is contained in:
AncTe committed 2024-11-06 15:06:43 +08:00
1 parent 92ed1c2d4a
commit 283df5fca6
2 files changed
+10 -3

No files matched your search

+7
View File
@@ -52,3 +52,10 @@ loading.once('coreInit', () => {
});
registerPresetState();
window.addEventListener('beforeunload', () => {
core.checkAutosave();
});
hook.on('restart', () => {
core.checkAutosave();
});