diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-13 18:47:08 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-13 18:47:08 -0700 |
commit | eb850b4a17fd0eb8e02668ed4330de5c88e79880 (patch) | |
tree | 028f0661ceaa16965fba6ed697f699d56b258993 /modern/src/SocketController.js | |
parent | d171ec4d0c6a40a47af7870c40d1657da2b511e8 (diff) | |
download | trackermap-web-eb850b4a17fd0eb8e02668ed4330de5c88e79880.tar.gz trackermap-web-eb850b4a17fd0eb8e02668ed4330de5c88e79880.tar.bz2 trackermap-web-eb850b4a17fd0eb8e02668ed4330de5c88e79880.zip |
Refactor server initialization
Diffstat (limited to 'modern/src/SocketController.js')
-rw-r--r-- | modern/src/SocketController.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js index 3e6e6783..79661353 100644 --- a/modern/src/SocketController.js +++ b/modern/src/SocketController.js @@ -66,15 +66,6 @@ const SocketController = () => { }; useEffectAsync(async () => { - const response = await fetch('/api/server'); - if (response.ok) { - dispatch(sessionActions.updateServer(await response.json())); - } else { - throw Error(await response.text()); - } - }, []); - - useEffectAsync(async () => { if (authenticated) { const response = await fetch('/api/devices'); if (response.ok) { |