diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx
index 7f6d4018..c069a7b1 100644
--- a/packages/app/src/App.jsx
+++ b/packages/app/src/App.jsx
@@ -161,13 +161,14 @@ class App extends React.Component {
this.wsReconnectingTry = this.wsReconnectingTry + 1
- if (this.wsReconnectingTry > 3) {
+ if (this.wsReconnectingTry > 3 && app.settings.get("app.reloadOnWSConnectionError")) {
window.location.reload()
}
},
"websocket_latency_too_high": function () {
if (!this.latencyWarning) {
this.latencyWarning = true
+
Toast.show({
icon: "loading",
content: "Slow connection...",
@@ -178,6 +179,7 @@ class App extends React.Component {
"websocket_latency_normal": function () {
if (this.latencyWarning) {
this.latencyWarning = null
+
Toast.show({
icon: "success",
content: "Connection restored",
@@ -243,7 +245,7 @@ class App extends React.Component {
RenderError: (props) => {
return