Jason Foo 4 years ago
parent
commit
2931c01acb
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/WebView.android.tsx

+ 2
- 2
src/WebView.android.tsx View 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);