From: Stephen Jianu Date: Sun, 31 Dec 2023 22:39:20 +0000 (-0600) Subject: Switch themes on change event --- diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 773d6dc..96931b6 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -14,6 +14,7 @@ function Settings () { this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' this.theme_button.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) }) + this.theme_button.addEventListener('change', () => { donsol.player.change_theme(this.theme_button.value) }) this.element.appendChild(this.theme_button)