mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Small log tests
This commit is contained in:
@@ -167,7 +167,7 @@ var Channel = {
|
||||
no_socket = false;
|
||||
socket = io.connect(''+add+':8080', connection_options);
|
||||
socket.on('update_required', function(msg) {
|
||||
if(window.location.hostname == "localhost") {
|
||||
if(window.location.hostname == "localhost" || debug == true) {
|
||||
console.error(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -464,7 +464,7 @@ var Frontpage = {
|
||||
no_socket = false;
|
||||
socket = io.connect(''+add+':8080', connection_options);
|
||||
socket.on('update_required', function(msg) {
|
||||
if(window.location.hostname == "localhost") {
|
||||
if(window.location.hostname == "localhost" || debug == true) {
|
||||
console.log(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user