Show a ▶ or ⏸ icon in the title when playing
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c4936dc4ff
commit
d0ec23dc5a
1 changed files with 5 additions and 1 deletions
|
@ -59,7 +59,11 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
{% if let Some(name) = name %}
|
{% 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 %}
|
{% else %}
|
||||||
document.title = "Empede";
|
document.title = "Empede";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue