diff options
Diffstat (limited to 'web/src/js/connection.js')
-rw-r--r-- | web/src/js/connection.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/src/js/connection.js b/web/src/js/connection.js index 090dbb29..bf9b16d3 100644 --- a/web/src/js/connection.js +++ b/web/src/js/connection.js @@ -1,4 +1,4 @@ -import {ConnectionActions, EventLogActions} from "./actions.js"; +import {ConnectionActions} from "./actions.js"; import {AppDispatcher} from "./dispatcher.js"; import * as webSocketActions from "./ducks/websocket" import * as eventLogActions from "./ducks/eventLog" @@ -27,12 +27,12 @@ export default function Connection(url, dispatch) { }; ws.onerror = function () { ConnectionActions.error(); - EventLogActions.add_event("WebSocket connection error."); + dispatch(eventLogActions.addLogEntry("WebSocket connection error.")); }; ws.onclose = function () { ConnectionActions.close(); - EventLogActions.add_event("WebSocket connection closed."); - dispatch(websocketActions.disconnected()); + dispatch(eventLogActions.addLogEntry("WebSocket connection closed.")); + dispatch(webSocketActions.disconnected()); }; return ws; }
\ No newline at end of file |