From 0a491b89be09557338e86c0de13bcb10816901a6 Mon Sep 17 00:00:00 2001 From: adrien Date: Wed, 14 Jun 2023 22:54:32 +0200 Subject: [PATCH] bug fixes --- app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 16da038..d31b20d 100644 --- a/app.js +++ b/app.js @@ -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) } },