bug fixes

This commit is contained in:
Adrien MALINGREY 2023-06-14 22:54:32 +02:00
parent b4a241b3a9
commit 0a491b89be

8
app.js
View File

@ -455,7 +455,7 @@ class Settings {
if (localStorage[element.name]) element.value = localStorage[element.name]
}
}
document.selectedStyleSheetSet = stylesheetSelect.value
window.document.selectedStyleSheetSet = stylesheetSelect.value
}
save() {
@ -499,6 +499,10 @@ class Settings {
}
}
window.onload = function (event) {
window.document.selectedStyleSheetSet = stylesheetSelect.value
}
function changeKey(input) {
prevValue = input.value
input.value = ""
@ -835,10 +839,10 @@ let playerActions = {
scheduler.clearTimeout(lockDown)
let heldPiece = holdQueue.piece
matrix.piece.facing = FACING.NORTH
holdQueue.piece = matrix.piece
holdQueue.piece.holdEnabled = false
holdQueue.piece.locked = false
holdQueue.piece.facing = FACING.NORTH
generate(heldPiece)
}
},