mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Removed contrastMode from url state
This commit is contained in:
@@ -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));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user