diff --git a/static/js/youtube.js b/static/js/youtube.js index 8a255778..ad028420 100755 --- a/static/js/youtube.js +++ b/static/js/youtube.js @@ -83,7 +83,7 @@ $(document).ready(function() closeOnClick: false // Closes side-nav on clicks, useful for Angular/Meteor }); $('#settings-close').sideNav('hide'); - + colorThief = new ColorThief(); window.mobilecheck = function() { var check = false; @@ -181,7 +181,7 @@ function onPlayerStateChange(newState) { function getTitle(titt, v) { var outPutWord = v > 1 ? "viewers" : "viewer"; - var title= titt.replace(/\\\'/g, "'").replace(/"/g,"'").replace(/&/g,"&"); + var title= decodeURIComponent(titt); document.title = title + " • Zöff"; if(!window.mobilecheck()){ document.getElementById('search').placeholder = title + " • " + v + " " + outPutWord;