Jason Foo 4 anni fa
parent
commit
2931c01acb
No account linked to committer's email address
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/WebView.android.tsx

+ 2
- 2
src/WebView.android.tsx Vedi File

@@ -247,9 +247,9 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
247 247
     if (onLoadEnd) {
248 248
       onLoadEnd(event);
249 249
     }
250
-    if (url === this.startUrl) {
250
+    if (url && this.startUrl && url.toLowerCase() === this.startUrl.toLowerCase()) {
251 251
       this.setState({
252
-        viewState: 'IDLE',
252
+          viewState: 'IDLE',
253 253
       });
254 254
     }
255 255
     this.updateNavigationState(event);