Refresh the page title
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
c727048b66
commit
070bf44c47
@ -25,7 +25,7 @@ baseurl: "/obs-somafm-current-track"
|
|||||||
|
|
||||||
# Site description
|
# Site description
|
||||||
description: "Page displays a popup window with the current playing track SomaFM radio."
|
description: "Page displays a popup window with the current playing track SomaFM radio."
|
||||||
title: "Current track SomaFM"
|
title: "Current track of the radio SomaFM"
|
||||||
|
|
||||||
# Exceptions
|
# Exceptions
|
||||||
exclude:
|
exclude:
|
||||||
|
@ -34,7 +34,6 @@ function updateData(artistTrack, titleTrack) {
|
|||||||
|
|
||||||
if (artistElement.textContent !== artistTrack || titleElement.textContent !== titleTrack) {
|
if (artistElement.textContent !== artistTrack || titleElement.textContent !== titleTrack) {
|
||||||
/* Updates text */
|
/* Updates text */
|
||||||
document.title = artistTrack + ' - ' + titleTrack;
|
|
||||||
artistElement.textContent = artistTrack;
|
artistElement.textContent = artistTrack;
|
||||||
titleElement.textContent = titleTrack;
|
titleElement.textContent = titleTrack;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user