🐛 répare l'integration iframe sur iOS

pull/322/head
Johan Girod 2018-08-30 11:10:08 +02:00
parent 251fe98c7c
commit 60a49a1c93
1 changed files with 3 additions and 2 deletions

View File

@ -2,11 +2,12 @@ import LangSwitcher from 'Components/LangSwitcher'
import React, { Component } from 'react'
import { Trans, translate } from 'react-i18next'
import screenfull from 'screenfull'
import emoji from 'react-easy-emoji';
@translate()
export default class IframeFooter extends Component {
componentDidMount() {
screenfull.onchange(() => this.forceUpdate())
screenfull.enabled && screenfull.onchange(() => this.forceUpdate())
}
render() {
@ -27,7 +28,7 @@ export default class IframeFooter extends Component {
onClick={() => {
screenfull.toggle()
}}>
🖵 
{emoji('🖵')} 
<Trans>Plein écran</Trans>
</button>
)}