浏览代码

Update WebView.android.tsx

Remove checking of startUrl === curentUrl
Jason Foo 4 年前
父节点
当前提交
99d5f4fe90
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3
    5
      src/WebView.android.tsx

+ 3
- 5
src/WebView.android.tsx 查看文件

237
     if (onLoadEnd) {
237
     if (onLoadEnd) {
238
       onLoadEnd(event);
238
       onLoadEnd(event);
239
     }
239
     }
240
-    if (url === this.startUrl) {
241
-      this.setState({
242
-        viewState: 'IDLE',
243
-      });
244
-    }
240
+    this.setState({
241
+      viewState: 'IDLE',
242
+    });
245
     this.updateNavigationState(event);
243
     this.updateNavigationState(event);
246
   };
244
   };
247
 
245