Decoding the title of now playing too

This commit is contained in:
Kasper Rynning-Tønnesen
2015-04-15 20:05:00 +02:00
parent a9d99e208a
commit f4a2c7c77f

View File

@@ -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;