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 374B

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