reconnect liveui on close
This commit is contained in:
parent
69f08dbb58
commit
5443e06b38
@ -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>";
|
||||||
|
Reference in New Issue
Block a user