removed some logging

This commit is contained in:
Kasper Rynning-Tønnesen
2015-05-12 22:49:54 +02:00
parent e8e7b2bda4
commit 7a9b84a4b6

View File

@@ -26,14 +26,11 @@ document.getElementById("chat-btn").addEventListener("click", function(){
}); });
$(".chat-tab").click(function(){ $(".chat-tab").click(function(){
console.log("clik");
$("#text-chat-input").focus(); $("#text-chat-input").focus();
}); });
socket.on("chat.all", function(data) socket.on("chat.all", function(data)
{ {
console.log("chat.all");
console.log(document.hidden);
if($("#chat-bar").position()["left"] != 0) if($("#chat-bar").position()["left"] != 0)
{ {
//$("#chat-btn").css("color", "grey"); //$("#chat-btn").css("color", "grey");
@@ -59,7 +56,6 @@ socket.on("chat.all", function(data)
$(window).focus(function(){ $(window).focus(function(){
if(unseen) if(unseen)
{ {
console.log("unseen");
$("#favicon").attr("href", "static/images/favicon.png"); $("#favicon").attr("href", "static/images/favicon.png");
unseen = false; unseen = false;
} }