aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-29 15:33:03 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-29 15:33:03 -0700
commit3973030c9d7795779e6b3d309e6788f5b7077ecb (patch)
tree13b4bb63fdeb1308db4966ce894a36b0d24e9648
parent41ca114c886797c557c705ef90cc1b7491d16d4e (diff)
downloadtrackermap-web-3973030c9d7795779e6b3d309e6788f5b7077ecb.tar.gz
trackermap-web-3973030c9d7795779e6b3d309e6788f5b7077ecb.tar.bz2
trackermap-web-3973030c9d7795779e6b3d309e6788f5b7077ecb.zip
Fix socket issue
-rw-r--r--modern/src/SocketController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js
index f915c999..6de3369a 100644
--- a/modern/src/SocketController.js
+++ b/modern/src/SocketController.js
@@ -28,7 +28,7 @@ const SocketController = (props) => {
const socket = new WebSocket(protocol + '//' + window.location.host + '/api/socket');
socket.onclose = () => {
- setTimeout(() => this.connectSocket(), 60 * 1000);
+ setTimeout(() => connectSocket(), 60 * 1000);
};
socket.onmessage = (event) => {