diff --git a/client/app/scripts/actions/app-actions.js b/client/app/scripts/actions/app-actions.js index 89b44722a..f08094634 100644 --- a/client/app/scripts/actions/app-actions.js +++ b/client/app/scripts/actions/app-actions.js @@ -668,14 +668,12 @@ export function receiveNotFound(nodeId) { } export function setContrastMode(enabled) { - return (dispatch, getState) => { + return (dispatch) => { loadTheme(enabled ? 'contrast' : 'normal'); dispatch({ type: ActionTypes.TOGGLE_CONTRAST_MODE, enabled, }); - - updateRoute(getState); }; } @@ -700,10 +698,6 @@ export function route(urlState) { state.get('nodeDetails'), dispatch ); - - if (urlState.contrastMode) { - dispatch(setContrastMode(true)); - } }; }