jiti-meet/react/features/unsupported-browser/reducer.js

24 lines
658 B
JavaScript
Raw Normal View History

import { ReducerRegistry } from '../base/redux';
2017-01-19 15:47:22 +00:00
import { MOBILE_BROWSER_PAGE_IS_SHOWN } from './actionTypes';
ReducerRegistry.register(
'features/unsupported-browser',
(state = {}, action) => {
switch (action.type) {
2017-01-19 15:47:22 +00:00
case MOBILE_BROWSER_PAGE_IS_SHOWN:
return {
...state,
/**
2017-01-19 15:47:22 +00:00
* Flag that shows that mobile browser page is shown.
*
* @type {boolean}
*/
2017-01-19 15:47:22 +00:00
mobileBrowserPageIsShown: true
};
}
return state;
});