Quellcode durchsuchen

#54 Events: sync to calendar isn't working in mobile app

Alex Trofimov vor 4 Jahren
Ursprung
Commit
28b1efe139
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      App.js

+ 1 - 1
App.js

@@ -388,7 +388,7 @@ export default class App extends Component<Props> {
         if ('about:blank' === event.url)
             return false;
 
-        if (0 != event.url.indexOf('http') || (!bExceptionUrl && -1 == event.url.indexOf(`${BASE_URL}`) && ('android' === Platform.OS || ('click' == event.navigationType && 'ios' === Platform.OS)))) {
+        if ((0 != event.url.indexOf('http') || (!bExceptionUrl && -1 == event.url.indexOf(`${BASE_URL}`) && ('android' === Platform.OS || ('click' == event.navigationType && 'ios' === Platform.OS)))) || -1 != event.url.indexOf('calendar_sync')) {
 
             Linking.canOpenURL(event.url).then(supported => {
                 if (supported) {