From 9c2d7bbce292b9ffc8a8643025d8fe686664529f Mon Sep 17 00:00:00 2001 From: Torjus Date: Thu, 19 Jul 2018 10:04:46 +0200 Subject: [PATCH] Fix linting in Sidebar --- app/lib/components/Sidebar.jsx | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/app/lib/components/Sidebar.jsx b/app/lib/components/Sidebar.jsx index 2408229..1631c7c 100644 --- a/app/lib/components/Sidebar.jsx +++ b/app/lib/components/Sidebar.jsx @@ -9,22 +9,26 @@ import fscreen from 'fscreen'; class Sidebar extends Component { state = { - fullscreen: false + fullscreen : false }; handleToggleFullscreen = () => { - if (fscreen.fullscreenElement) { + if (fscreen.fullscreenElement) + { fscreen.exitFullscreen(); - } else { + } + else + { fscreen.requestFullscreen(document.documentElement); } }; - handleFullscreenChange = () => { + handleFullscreenChange = () => + { this.setState({ - fullscreen: fscreen.fullscreenElement !== null - }) + fullscreen : fscreen.fullscreenElement !== null + }); }; componentDidMount() @@ -43,7 +47,8 @@ class Sidebar extends Component } } - render() { + render() + { const { toolbarsVisible, me, screenProducer, onLogin, onShareScreen, onUnShareScreen, onNeedExtension, onLeaveMeeting @@ -83,7 +88,7 @@ class Sidebar extends Component {fscreen.fullscreenEnabled && (