This commit is contained in:
Renan LE CARO 2025-04-22 10:23:02 +02:00
parent dc66f69543
commit 6429c85a4b
4 changed files with 104 additions and 37 deletions

View file

@ -151,4 +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()))
}
});
afterMigration();