fix styleSheet change on chrome

This commit is contained in:
2023-12-07 21:29:48 +01:00
parent 50502be1d1
commit e7246c0a5d
2 changed files with 10 additions and 9 deletions

View File

@ -9,7 +9,7 @@ let lastActionSucceded = true
let favicon
window.onload = function(event) {
document.selectedStyleSheetSet = stylesheetSelect.value
selectedStyleSheet.href = stylesheetSelect.value
favicon = document.querySelector("link[rel~='icon']")
restart()
@ -120,7 +120,7 @@ let playerActions = {
scheduler.clearTimeout(lockDown)
playSound(hardDropSound)
while (matrix.piece.move(TRANSLATION.DOWN, ROTATION.NONE, true)) stats.score += 2
matrix.table.classList.add("hard-dropped-table-animation")
matrixCard.classList.add("hard-dropped-table-animation")
lockDown(true)
return true
},