From 60a49a1c93650548380f43e9ad5f541c48ab2523 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 30 Aug 2018 11:10:08 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20r=C3=A9pare=20l'integration=20iframe=20?= =?UTF-8?q?sur=20iOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/sites/embauche.gouv.fr/pages/IframeFooter.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/sites/embauche.gouv.fr/pages/IframeFooter.js b/source/sites/embauche.gouv.fr/pages/IframeFooter.js index b3c397a28..d72dcf158 100644 --- a/source/sites/embauche.gouv.fr/pages/IframeFooter.js +++ b/source/sites/embauche.gouv.fr/pages/IframeFooter.js @@ -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('🖵')}  Plein écran )}