From e7246c0a5d302f1b0591334c7716f059e23e2136 Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 7 Dec 2023 21:29:48 +0100 Subject: [PATCH] fix styleSheet change on chrome --- index.html | 15 ++++++++------- js/app.js | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index a20c1ab..205c5c3 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,8 @@ - + + @@ -59,12 +60,12 @@
Interface -
+ + + + +
diff --git a/js/app.js b/js/app.js index b109eea..67af0e6 100644 --- a/js/app.js +++ b/js/app.js @@ -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 },