Skip to content
Snippets Groups Projects
Unverified Commit d9de58e1 authored by Zh4rsiest's avatar Zh4rsiest Committed by GitHub
Browse files

Changing isIphone value

The component expects a boolean but isIphone property return an array ["Iphone"] if the user is from an iPhone
parent 1a987243
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ const FullscreenButtonContainer = props => <FullscreenButtonComponent {...props}
export default (props) => {
const handleToggleFullScreen = ref => FullscreenService.toggleFullScreen(ref);
const isIphone = navigator.userAgent.match(/iPhone/i);
const isIphone = (navigator.userAgent.match(/iPhone/i)) ? true : false;
return (
<FullscreenButtonContainer {...props} {...{ handleToggleFullScreen, isIphone }} />
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment