Archived
1
0

reconnect liveui on close

This commit is contained in:
Jeff Becker 2016-04-25 17:08:31 -04:00
parent 69f08dbb58
commit 5443e06b38
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -169,6 +169,9 @@ function inject_livechan_widget(prefix, parent) {
} }
socket.onclose = function(ev) { socket.onclose = function(ev) {
progress("connection closed"); progress("connection closed");
setTimeout(function() {
inject_livechan_widget(prefix, parent);
}, 1000);
} }
} else { } else {
parent.innerHTML = "<pre>livechan mode requires websocket support</pre>"; parent.innerHTML = "<pre>livechan mode requires websocket support</pre>";