Jason Foo 5 anos atrás
pai
commit
2931c01acb
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/WebView.android.tsx

+ 2
- 2
src/WebView.android.tsx Ver arquivo

247
     if (onLoadEnd) {
247
     if (onLoadEnd) {
248
       onLoadEnd(event);
248
       onLoadEnd(event);
249
     }
249
     }
250
-    if (url === this.startUrl) {
250
+    if (url && this.startUrl && url.toLowerCase() === this.startUrl.toLowerCase()) {
251
       this.setState({
251
       this.setState({
252
-        viewState: 'IDLE',
252
+          viewState: 'IDLE',
253
       });
253
       });
254
     }
254
     }
255
     this.updateNavigationState(event);
255
     this.updateNavigationState(event);