Skip to content

Commit fdd7783

Browse files
committed
Add clear log function
1 parent 0ac2cc9 commit fdd7783

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

home.html

+5
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)