aboutsummaryrefslogtreecommitdiff
path: root/assets/javascript/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascript/script.js')
-rw-r--r--assets/javascript/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/javascript/script.js b/assets/javascript/script.js
index d17c60c..f2eb794 100644
--- a/assets/javascript/script.js
+++ b/assets/javascript/script.js
@@ -12,7 +12,7 @@ function updateData(artistTrack, titleTrack) {
var artistElement = document.getElementById('artist');
var titleElement = document.getElementById('title');
- if (artistElement.innerHTML !== artistTrack || titleElement.innerHTML !== titleTrack) {
+ if (artistElement.textContent !== artistTrack || titleElement.textContent !== titleTrack) {
/* Updates text */
artistElement.innerHTML = artistTrack;
titleElement.innerHTML = titleTrack;