Fixed issue with title not being decoded correctly

This commit is contained in:
Kasper Rynning-Tønnesen
2018-01-17 09:02:23 +01:00
parent dbbd518978
commit 817ec47a20

View File

@@ -428,8 +428,13 @@ var Player = {
},
getTitle: function(titt, v) {
var outPutWord = "<i class='material-icons'>visibility</i>"//v > 1 ? "viewers" : "viewer";
var title = decodeURIComponent(titt);
var outPutWord = "<i class='material-icons'>visibility</i>"//v > 1 ? "viewers" : "viewer";
var title;
try {
title = decodeURIComponent(titt);
} catch(e) {
title = titt;
}
if(window.location.pathname != "/"){
var elem = document.getElementById('song-title');
var getTitleViews = document.getElementById('viewers');