mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-16 03:05:03 -04:00
wip
This commit is contained in:
parent
dc66f69543
commit
6429c85a4b
4 changed files with 104 additions and 37 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue