Remove Nchan error detection

Rely on the automatic reconnect of Nchan to re-establish connections when communication is slow
This commit is contained in:
bergware
2022-03-14 09:01:13 +01:00
parent b503b10e12
commit 68f9ef7bcc
@@ -663,9 +663,6 @@ defaultPage.on('message', function(msg,meta) {
break;
}
});
defaultPage.on('error', function(code,error) {
swal({title:"<?=_('Nchan communication error')?>", text:"<?=_('Page will be reloaded')?>", type:"warning", html:true, confirmButtonText:"<?=_('Ok')?>"},function(){setTimeout(refresh,50);});
});
var backtotopoffset = 250;
var backtotopduration = 500;