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

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
1 changed files with 5 additions and 1 deletions

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 %}