add auto-save mechanism every 5 seconds

This commit is contained in:
2023-11-10 20:18:22 +01:00
parent 293ae8bb7d
commit 142f4ae653
2 changed files with 9 additions and 3 deletions

View File

@ -16,7 +16,7 @@ const handleResize = (canvas: HTMLCanvasElement) => {
}
};
const saveBeforeExit = (app: Editor): null => {
export const saveBeforeExit = (app: Editor): null => {
// @ts-ignore
event.preventDefault();
// Iterate over all local files and set the candidate to the committed