...
|
...
|
@@ -5,6 +5,7 @@ import InitialState from './appInitialState'; |
|
|
const {
|
|
|
SET_PLATFORM,
|
|
|
SET_CHANNEL,
|
|
|
SET_HOST,
|
|
|
} = require('../../constants/actionTypes').default;
|
|
|
|
|
|
const initialState = new InitialState;
|
...
|
...
|
@@ -17,6 +18,10 @@ export default function appReducer(state = initialState, action) { |
|
|
return state.set('platform', action.payload);
|
|
|
case SET_CHANNEL:
|
|
|
return state.set('channel', action.payload);
|
|
|
case SET_HOST:
|
|
|
return state.set('host', action.payload);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
return state;
|
...
|
...
|
|