diff options
author | Valentin Popov <info@valentineus.link> | 2018-05-31 04:48:05 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-05-31 04:48:05 +0300 |
commit | 7107d7e464d7bd33c8c27e7719da9dc1c630b663 (patch) | |
tree | bf8e42990a4b110c6b014ac149c0bd9f3ccead12 /assets/javascript/script.js | |
parent | c1c9288555e306e00939cf4fa445668a67f046cd (diff) | |
download | obs-somafm_current_track-7107d7e464d7bd33c8c27e7719da9dc1c630b663.tar.xz obs-somafm_current_track-7107d7e464d7bd33c8c27e7719da9dc1c630b663.zip |
Correct text comparison
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'assets/javascript/script.js')
-rw-r--r-- | assets/javascript/script.js | 2 |
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; |