mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-16 11:14:50 -04:00
Build 29088513
This commit is contained in:
parent
bf3dac8e8f
commit
af65737011
10 changed files with 58 additions and 59 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue