Show a ▶ or ⏸ icon in the title when playing
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sijmen 2023-05-07 02:12:45 +02:00
parent c4936dc4ff
commit d0ec23dc5a
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48

View file

@ -59,7 +59,11 @@
<script>
{% if let Some(name) = name %}
document.title = decodeURI("{{ name|urlencode }} - Empede");
{% if state == mpdrs::State::Play %}
document.title = decodeURI("▶ {{ name|urlencode }} - Empede");
{% else %}
document.title = decodeURI("⏸ {{ name|urlencode }} - Empede");
{% endif %}
{% else %}
document.title = "Empede";
{% endif %}