From d9de58e1c80757c47cd095dfe4b1867739f11729 Mon Sep 17 00:00:00 2001
From: Zh4rsiest <44137536+Zh4rsiest@users.noreply.github.com>
Date: Thu, 15 Oct 2020 16:20:06 +0200
Subject: [PATCH] Changing isIphone value

The component expects a boolean but isIphone property return an array ["Iphone"] if the user is from an iPhone
---
 .../imports/ui/components/fullscreen-button/container.jsx       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bigbluebutton-html5/imports/ui/components/fullscreen-button/container.jsx b/bigbluebutton-html5/imports/ui/components/fullscreen-button/container.jsx
index ab87fa98d3..233a63b3b1 100644
--- a/bigbluebutton-html5/imports/ui/components/fullscreen-button/container.jsx
+++ b/bigbluebutton-html5/imports/ui/components/fullscreen-button/container.jsx
@@ -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 }} />
   );
-- 
GitLab