Skip to content

Commit 6f51fb9

Browse files
committed
Default log on
1 parent 05d5d16 commit 6f51fb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const homeTemplateHtml = `<!DOCTYPE html>
240240
var log = document.getElementById('log');
241241
var pause = document.getElementById('myCheck');
242242
var messages = [];
243-
var only_log = true;
243+
var only_log = false;
244244
245245
function appendLog(msg) {
246246
@@ -265,8 +265,8 @@ const homeTemplateHtml = `<!DOCTYPE html>
265265
return false;
266266
}
267267
socket.emit("command", msg.val());
268-
if (msg.val().indexOf("log on") != -1) {only_log = true;}
269-
if (msg.val().indexOf("log off") != -1) {only_log = false;}
268+
if (msg.val().indexOf("log off") != -1) {only_log = true;}
269+
if (msg.val().indexOf("log on") != -1) {only_log = false;}
270270
msg.val("");
271271
return false
272272
});

0 commit comments

Comments
 (0)