mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue with title not being decoded correctly
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user