From 3736b33247feb471b8ba91c647b8338f4852f5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 23 Jun 2015 15:40:36 +0200 Subject: [PATCH] Fixed error bug --- php/footer.php | 3 +-- static/js/youtube.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/php/footer.php b/php/footer.php index 87fca13f..5c5da38f 100755 --- a/php/footer.php +++ b/php/footer.php @@ -74,7 +74,6 @@ }); - @@ -83,4 +82,4 @@ - \ No newline at end of file + diff --git a/static/js/youtube.js b/static/js/youtube.js index 2bbde652..5710a6fc 100755 --- a/static/js/youtube.js +++ b/static/js/youtube.js @@ -268,7 +268,7 @@ function errorHandler(newState) var failsafe = ytplayer.getVideoUrl().split("https://www.youtube.com/watch"); if(newState.data == 5 || newState.data == 100 || newState.data == 101 || newState.data == 150) socket.emit("skip", newState.data); - else + else if(video_id !== undefined) ytplayer.loadVideoById(video_id); }