This commit is contained in:
Renan LE CARO 2025-04-06 10:13:10 +02:00
parent 0cef60f90d
commit bdbf8b846c
19 changed files with 1306 additions and 1591 deletions

View file

@ -35,3 +35,23 @@ migrate("recover_high_scores", () => {
}
});
});
migrate("remove_long_and_creative_mode_data", () => {
let runsHistory = JSON.parse(
localStorage.getItem("breakout_71_runs_history") || "[]",
) as RunHistoryItem[];
let cleaned=runsHistory.filter(r=> {
if('mode' in r){
if(r.mode !== 'short'){
return false
}
}
return true
})
if(cleaned.length!==runsHistory.length)
localStorage.setItem(
"breakout_71_runs_history",
JSON.stringify(cleaned),
);
});