aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-05-31 04:48:05 +0300
committerValentin Popov <info@valentineus.link>2018-05-31 04:48:05 +0300
commit7107d7e464d7bd33c8c27e7719da9dc1c630b663 (patch)
treebf8e42990a4b110c6b014ac149c0bd9f3ccead12
parentc1c9288555e306e00939cf4fa445668a67f046cd (diff)
downloadobs-somafm_current_track-7107d7e464d7bd33c8c27e7719da9dc1c630b663.tar.xz
obs-somafm_current_track-7107d7e464d7bd33c8c27e7719da9dc1c630b663.zip
Correct text comparison
Signed-off-by: Valentin Popov <info@valentineus.link>
-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;