diff --git a/src/shark/SaveHandler.ts b/src/shark/SaveHandler.ts index 9041a72..afb146d 100644 --- a/src/shark/SaveHandler.ts +++ b/src/shark/SaveHandler.ts @@ -63,6 +63,10 @@ export class SaveHandler extends StaticClass { const migrators = SaveHandler.migrators.slice(saveVersion); + if (migrators.length > 0 && localSave !== null) { + localStorage.setItem(SaveHandler.saveName + "-backup", localSave); + } + let save = loadedSave; for (let i = 0; i < migrators.length; i++) { console.debug(