Switch themes on <select> change event
This commit is contained in:
parent
729c71fac0
commit
13bf2d1529
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ function Settings () {
|
|||
this.theme_button.innerHTML += '<option value=\"gameboy\">Game Boy</option>'
|
||||
this.theme_button.innerHTML += '<option value=\"nightowl\">Night Owl</option>'
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue