bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/fullscreen-button/container.jsx
Zh4rsiest 3f13f4eca4 Changing isIphone value
The component expects a boolean but isIphone property return an array ["Iphone"] if the user is from an iPhone
2020-10-23 12:37:43 -03:00

14 lines
499 B
JavaScript

import React from 'react';
import FullscreenButtonComponent from './component';
import FullscreenService from './service';
const FullscreenButtonContainer = props => <FullscreenButtonComponent {...props} />;
export default (props) => {
const handleToggleFullScreen = ref => FullscreenService.toggleFullScreen(ref);
const isIphone = (navigator.userAgent.match(/iPhone/i)) ? true : false;
return (
<FullscreenButtonContainer {...props} {...{ handleToggleFullScreen, isIphone }} />
);
};