diff --git a/html/js/app.js b/html/js/app.js index f284d12..2b5a0fb 100644 --- a/html/js/app.js +++ b/html/js/app.js @@ -93,7 +93,8 @@ } window.removeEventListener('beforeunload', unloadCallback); clearInterval(pingTimer); - if (autoReconnect > 0) { + // 1000: CLOSE_NORMAL + if (event.code !== 1000 && autoReconnect > 0) { setTimeout(openWs, autoReconnect * 1000); } }; diff --git a/src/index.html b/src/index.html index e2ec8b2..26930a7 100644 --- a/src/index.html +++ b/src/index.html @@ -17,6 +17,6 @@ e||this.emit("scroll",this.ydisp),this.refresh(0,this.rows-1)},s.prototype.scrol
- +