From 070bf44c47547729d8a1f975dcb3f52a865b7588 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 31 May 2018 07:10:45 +0400 Subject: Refresh the page title Signed-off-by: Valentin Popov --- _config.yml | 2 +- assets/javascript/script.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 8d369ab..7dea14a 100644 --- a/_config.yml +++ b/_config.yml @@ -25,7 +25,7 @@ baseurl: "/obs-somafm-current-track" # Site description 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 exclude: diff --git a/assets/javascript/script.js b/assets/javascript/script.js index 6eaf1a6..1055a3e 100644 --- a/assets/javascript/script.js +++ b/assets/javascript/script.js @@ -34,7 +34,6 @@ function updateData(artistTrack, titleTrack) { if (artistElement.textContent !== artistTrack || titleElement.textContent !== titleTrack) { /* Updates text */ - document.title = artistTrack + ' - ' + titleTrack; artistElement.textContent = artistTrack; titleElement.textContent = titleTrack; -- cgit v1.2.3