Removed contrastMode from url state

This commit is contained in:
jpellizzari
2017-03-02 15:43:35 -08:00
parent 4818cd873e
commit a2ddc27a15

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