mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added Helper.log and error message on connection failure
This commit is contained in:
@@ -235,8 +235,8 @@ var Nochan = {
|
||||
|
||||
success: function(e){
|
||||
|
||||
if(Player.ytplayer !== ""){
|
||||
//Player.ytplayer.destroy();
|
||||
if(Player.player !== ""){
|
||||
//Player.player.destroy();
|
||||
socket.emit("change_channel", {channel: chan.toLowerCase()});
|
||||
}
|
||||
$("#frontpage_player").empty();
|
||||
@@ -252,7 +252,7 @@ var Nochan = {
|
||||
$("main").attr("class", "container center-align main");
|
||||
$("body").attr("id", "channelpage");
|
||||
$("header").html($($(e)[59]).html());
|
||||
if($("#alreadychannel").length === 0 || Helper.mobilecheck() || Player.ytplayer === undefined){
|
||||
if($("#alreadychannel").length === 0 || Helper.mobilecheck() || Player.player === undefined){
|
||||
$("main").html($($(e)[63]).html());
|
||||
} else {
|
||||
var main = $($($($($(e)[63]).html())[0]).html());
|
||||
|
||||
Reference in New Issue
Block a user