mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-24 22:16:14 -04:00
Build 29085904
This commit is contained in:
parent
de485e5598
commit
f1cd138071
8 changed files with 22 additions and 9 deletions
|
@ -4,6 +4,7 @@ import _appVersion from "./data/version.json";
|
|||
import { generateSaveFileContent } from "./generateSaveFileContent";
|
||||
import { getLevelUnlockCondition, reasonLevelIsLocked } from "./game_utils";
|
||||
import { allLevels } from "./loadGameData";
|
||||
import { toast } from "./toast";
|
||||
|
||||
// The page will be reloaded if any migrations were run
|
||||
let migrationsRun = 0;
|
||||
|
@ -15,6 +16,7 @@ function migrate(name: string, cb: () => void) {
|
|||
localStorage.setItem(name, "" + Date.now());
|
||||
migrationsRun++;
|
||||
} catch (e) {
|
||||
toast((e as Error).message);
|
||||
console.warn("Migration " + name + " failed : ", e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue