Refresh the page title
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user