Skip to content

Commit 9dfdeb8

Browse files
sebromeromatteosuppo
authored andcommitted
Add clear log function
1 parent bca7119 commit 9dfdeb8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

home.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
link.click();
5252
});
5353

54+
$('#clear').click(function() {
55+
messages = [];
56+
log.innerHTML = '';
57+
});
58+
5459
if (window['WebSocket']) {
5560
if (window.location.protocol === 'https:') {
5661
socket = io('https://{{$}}')

0 commit comments

Comments
 (0)