名前を短くして文字列で保存してみる
This commit is contained in:
@@ -375,7 +375,7 @@ class SongSelect{
|
|||||||
waitPreview: 0
|
waitPreview: 0
|
||||||
}
|
}
|
||||||
this.songSelecting = {
|
this.songSelecting = {
|
||||||
speed: localStorage.getItem("songSelectingSpeed") ?? 400,
|
speed: parseInt(localStorage.getItem("sss") ?? "400", 10),
|
||||||
resize: 0.3,
|
resize: 0.3,
|
||||||
scrollDelay: 0.1
|
scrollDelay: 0.1
|
||||||
}
|
}
|
||||||
@@ -890,12 +890,16 @@ class SongSelect{
|
|||||||
} else if (currentSong.action === "songSelectingSpeed") {
|
} else if (currentSong.action === "songSelectingSpeed") {
|
||||||
this.playSound("se_don");
|
this.playSound("se_don");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let songSelectingSpeed = localStorage.getItem("songSelectingSpeed") ?? 400;
|
let songSelectingSpeed = localStorage.getItem("sss") ?? "400";
|
||||||
songSelectingSpeed = prompt("曲選択速度を入力してね!", songSelectingSpeed);
|
const pro = prompt("曲選択速度を入力してね!", songSelectingSpeed);
|
||||||
if (songSelectingSpeed === null || songSelectingSpeed === "") {
|
if (pro === null) {
|
||||||
songSelectingSpeed = 400;
|
// キャンセル
|
||||||
|
} else if (pro === "") {
|
||||||
|
songSelectingSpeed = "400";
|
||||||
|
} else {
|
||||||
|
songSelectingSpeed = pro;
|
||||||
}
|
}
|
||||||
localStorage.setItem("songSelectingSpeed", songSelectingSpeed);
|
localStorage.setItem("sss", songSelectingSpeed.toString());
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user