You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reducer.js 472B

123456789101112131415161718192021
  1. import { ReducerRegistry } from '../../base/redux';
  2. import { _SET_IMMERSIVE_LISTENER } from './actionTypes';
  3. const INITIAL_STATE = {
  4. listener: undefined
  5. };
  6. ReducerRegistry.register(
  7. 'features/full-screen',
  8. (state = INITIAL_STATE, action) => {
  9. switch (action.type) {
  10. case _SET_IMMERSIVE_LISTENER:
  11. return {
  12. ...state,
  13. listener: action.listener
  14. };
  15. }
  16. return state;
  17. });