From 5443e06b381b4965856792191f7d816a9c278400 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 25 Apr 2016 17:08:31 -0400 Subject: [PATCH] reconnect liveui on close --- contrib/static/nntpchan.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 99f5034..2059595 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -169,6 +169,9 @@ function inject_livechan_widget(prefix, parent) { } socket.onclose = function(ev) { progress("connection closed"); + setTimeout(function() { + inject_livechan_widget(prefix, parent); + }, 1000); } } else { parent.innerHTML = "
livechan mode requires websocket support
";