Small log tests

This commit is contained in:
Kasper Rynning-Tønnesen
2019-02-28 08:27:12 +01:00
parent f5a992dde0
commit 604d7f5b83
3 changed files with 7 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}