change the utf-8 icon for playlist buttons

This commit is contained in:
hossein s. borhani 2022-08-08 05:14:13 +04:30 committed by GitHub
parent 657a921e9a
commit e66d16cb14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,11 +272,11 @@ wrapper.appendChild(controls);
controls.style.width = mediaTag.getBoundingClientRect().width.toString() + "px";
// appending the media tag to the wrapper removes it from the outer scope but keeps the event listeners
wrapper.appendChild(mediaTag);
left.innerHTML = "<"; // not textContent, because we MUST escape
left.innerHTML = "◁"; // not textContent, because we MUST escape
// the tag here and textContent shows the
// escaped version
left.onclick = () => changeTrack(mediaTag, -1);
right.innerHTML = ">";
right.innerHTML = "▷";
right.onclick = () => changeTrack(mediaTag, +1);
fetchPlaylist(
url,