Add async and await to repeatBtn
This commit is contained in:
parent
020176167e
commit
893138e15b
1 changed files with 2 additions and 2 deletions
4
js/ui.js
4
js/ui.js
|
|
@ -2024,8 +2024,8 @@ export class UIRenderer {
|
|||
shuffleBtn.classList.toggle('active', this.player.shuffleActive);
|
||||
};
|
||||
|
||||
repeatBtn.onclick = () => {
|
||||
const mode = this.player.toggleRepeat();
|
||||
repeatBtn.onclick = async () => {
|
||||
const mode = await this.player.toggleRepeat();
|
||||
repeatBtn.classList.toggle('active', mode !== 0);
|
||||
if (mode === 2) {
|
||||
repeatBtn.innerHTML = SVG_REPEAT_ONE(24);
|
||||
|
|
|
|||
Loading…
Reference in a new issue