mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Merge pull request #261 from zoff-music/fix/general_bug_fixes
Fixed issue with title not being decoded correctly
This commit is contained in:
@@ -429,7 +429,12 @@ var Player = {
|
|||||||
|
|
||||||
getTitle: function(titt, v) {
|
getTitle: function(titt, v) {
|
||||||
var outPutWord = "<i class='material-icons'>visibility</i>"//v > 1 ? "viewers" : "viewer";
|
var outPutWord = "<i class='material-icons'>visibility</i>"//v > 1 ? "viewers" : "viewer";
|
||||||
var title = decodeURIComponent(titt);
|
var title;
|
||||||
|
try {
|
||||||
|
title = decodeURIComponent(titt);
|
||||||
|
} catch(e) {
|
||||||
|
title = titt;
|
||||||
|
}
|
||||||
if(window.location.pathname != "/"){
|
if(window.location.pathname != "/"){
|
||||||
var elem = document.getElementById('song-title');
|
var elem = document.getElementById('song-title');
|
||||||
var getTitleViews = document.getElementById('viewers');
|
var getTitleViews = document.getElementById('viewers');
|
||||||
|
|||||||
Reference in New Issue
Block a user