Build 29088513

This commit is contained in:
Renan LE CARO 2025-04-22 10:33:25 +02:00
parent bf3dac8e8f
commit af65737011
10 changed files with 58 additions and 59 deletions

View file

@ -151,14 +151,14 @@ migrate("clean_ls", () => {
}
});
migrate("set_user_id", () => {
// Useful to identify a player when uploading his save file multiple times to a web service
if(!localStorage.getItem('breakout_71_user_id')){
localStorage.setItem('breakout_71_user_id', JSON.stringify(self?.crypto?.randomUUID()||'user_'+Math.random()))
if (!localStorage.getItem("breakout_71_user_id")) {
localStorage.setItem(
"breakout_71_user_id",
JSON.stringify(self?.crypto?.randomUUID() || "user_" + Math.random()),
);
}
});
afterMigration();