From b40d23b158fb75f6e9554a8b8b34e9d37febb54a Mon Sep 17 00:00:00 2001 From: VincentBounce Date: Wed, 6 Mar 2024 23:22:06 +0400 Subject: [PATCH] Misc --- tetrilight.source.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetrilight.source.js b/tetrilight.source.js index 22602d2..edf3735 100755 --- a/tetrilight.source.js +++ b/tetrilight.source.js @@ -1086,8 +1086,8 @@ TetrisGrid.prototype = { }, chooseControlAction(keyboardEvent) { //no controls during animations, this.isGridAvailableToPlay solves bug of not reloading on keyup after a drop if (GAME._gameState === GAME_STATES.runningBeforeKeyPressed) { // Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD - AUDIO.audioPlay('musicMusic'); GAME._gameState = GAME_STATES.running; + AUDIO.audioPlay('musicMusic'); } if ( (this.isGridAvailableToPlay()) && keyboardEvent.type === 'keydown') switch (keyboardEvent.code) { case this._playerKeysSet.keys[0]: // UP