2018-02-14 18:28:22 +00:00
|
|
|
// @flow
|
|
|
|
|
2018-02-07 13:34:40 +00:00
|
|
|
import { ReducerRegistry } from '../../base/redux';
|
|
|
|
|
|
|
|
import { _SET_IMMERSIVE_LISTENER } from './actionTypes';
|
|
|
|
|
2018-02-14 18:28:22 +00:00
|
|
|
ReducerRegistry.register('features/full-screen', (state = {}, action) => {
|
|
|
|
switch (action.type) {
|
|
|
|
case _SET_IMMERSIVE_LISTENER:
|
|
|
|
return {
|
|
|
|
...state,
|
|
|
|
listener: action.listener
|
|
|
|
};
|
|
|
|
}
|
2018-02-07 13:34:40 +00:00
|
|
|
|
2018-02-14 18:28:22 +00:00
|
|
|
return state;
|
|
|
|
});
|