clearing video_id and title when leaving a channel

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-03 14:52:41 +01:00
parent ed44c3b67c
commit 7f339e4ea4
3 changed files with 7 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -422,8 +422,11 @@ function onepage_load(){
setTimeout(function(){ setTimeout(function(){
video_id = "";
song_title = "";
$("meta[name=theme-color]").attr("content", "#2D2D2D"); $("meta[name=theme-color]").attr("content", "#2D2D2D");
Youtube.ytplayer.destroy(); Youtube.ytplayer.destroy();
$(".drag-target").remove(); $(".drag-target").remove();