Merge pull request #2294 from weaveworks/2293-route-overflow

Removed contrastMode from url state
This commit is contained in:
Jordan Pellizzari
2017-03-02 19:17:29 -08:00
committed by GitHub

View File

@@ -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));
}
};
}