mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-10 06:54:30 +08:00
fix: 优化自动存档时机
This commit is contained in:
1 parent
92ed1c2d4a
commit
283df5fca6
2 files changed
+10
-3
No files matched your search
@@ -52,3 +52,10 @@ loading.once('coreInit', () => {
|
||||
});
|
||||
|
||||
registerPresetState();
|
||||
|
||||
window.addEventListener('beforeunload', () => {
|
||||
core.checkAutosave();
|
||||
});
|
||||
hook.on('restart', () => {
|
||||
core.checkAutosave();
|
||||
});
|
||||
Reference in new issue
Block a user