Browse Source

Fixed webview error on ios

keplyx 2 years ago
parent
commit
fc47332d61
3 changed files with 5 additions and 3 deletions
  1. 3
    1
      components/WebViewScreen.js
  2. 1
    1
      screens/AvailableRoomScreen.js
  3. 1
    1
      screens/PlanexScreen.js

+ 3
- 1
components/WebViewScreen.js View File

@@ -200,7 +200,9 @@ export default class WebViewScreen extends React.Component<Props, State> {
200 200
                         locked={true}
201 201
                         style = {{
202 202
                             paddingTop: this.state.isLandscape ? 20 : 0,
203
-                            backgroundColor: ThemeManager.getCurrentThemeVariables().brandPrimary
203
+                            backgroundColor: Platform.OS === 'ios' ?
204
+                                ThemeManager.getCurrentThemeVariables().tabDefaultBg :
205
+                                ThemeManager.getCurrentThemeVariables().brandPrimary
204 206
                         }}
205 207
 
206 208
                     >

+ 1
- 1
screens/AvailableRoomScreen.js View File

@@ -42,7 +42,7 @@ export default class AvailableRoomScreen extends React.Component<Props> {
42 42
             '<a style=\'margin: auto\' href=\'' + BIB_URL + '\'>' +
43 43
             '<button id=\'customBackButton\' class=\'btn btn-primary\'>Retour</button>' +
44 44
             '</a>' +
45
-            '</div>");';
45
+            '</div>");true;';
46 46
     }
47 47
 
48 48
     render() {

+ 1
- 1
screens/PlanexScreen.js View File

@@ -29,7 +29,7 @@ export default class PlanexScreen extends React.Component<Props> {
29 29
             'document.querySelector(\'head\').innerHTML += \'<meta name="viewport" content="width=device-width, initial-scale=1.0">\';' +
30 30
             'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_GENERAL + '" type="text/css"/>\';' +
31 31
             '$(".fc-toolbar .fc-center").append(\'<p id="rotateToLandscape">' + i18n.t("planexScreen.rotateToLandscape") + '</p>\');' +
32
-            '$(".fc-toolbar .fc-center").append(\'<p id="rotateToPortrait">' + i18n.t("planexScreen.rotateToPortrait") + '</p>\');';
32
+            '$(".fc-toolbar .fc-center").append(\'<p id="rotateToPortrait">' + i18n.t("planexScreen.rotateToPortrait") + '</p>\');true;';
33 33
         if (ThemeManager.getNightMode())
34 34
             this.customInjectedJS += 'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_NIGHTMODE + '" type="text/css"/>\';';
35 35
     }

Loading…
Cancel
Save