|
|
|
@ -8,7 +8,8 @@ import { addKnownDomains } from '../known-domains'; |
|
|
|
|
import { MiddlewareRegistry } from '../redux'; |
|
|
|
|
import { parseURIString } from '../util'; |
|
|
|
|
|
|
|
|
|
import { _UPDATE_CONFIG, SET_CONFIG } from './actionTypes'; |
|
|
|
|
import { SET_CONFIG } from './actionTypes'; |
|
|
|
|
import { updateConfig } from './actions'; |
|
|
|
|
import { _CONFIG_STORE_PREFIX } from './constants'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -114,10 +115,7 @@ function _setConfig({ dispatch, getState }, next, action) { |
|
|
|
|
config.resolution = resolutionFlag; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
dispatch({ |
|
|
|
|
type: _UPDATE_CONFIG, |
|
|
|
|
config |
|
|
|
|
}); |
|
|
|
|
dispatch(updateConfig(config)); |
|
|
|
|
|
|
|
|
|
// FIXME On Web we rely on the global 'config' variable which gets altered
|
|
|
|
|
// multiple times, before it makes it to the reducer. At some point it may
|
|
|
|
|