Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit 5b2b002

Browse files
修改判断错误写法问题
Signed-off-by: leehom <[email protected]>
1 parent ecc0861 commit 5b2b002

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

harmony/rn_webview.har

11 Bytes
Binary file not shown.

harmony/rn_webview/src/main/ets/WebView.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ export struct WebView {
376376
if (event) {
377377
let errorInfo: string = event.error.getErrorInfo();
378378
let errorCode: number = event.error.getErrorCode();
379-
if (errorInfo == "ERR_INTERNET_DISCONNECTED" || errorInfo == "ERR_CACHE_MISS" || !errorInfo == event.request.isMainFrame()) {
379+
if (errorInfo == "ERR_INTERNET_DISCONNECTED" || errorInfo == "ERR_CACHE_MISS" || !event.request.isMainFrame()) {
380380
Logger.debug(TAG, "[RNOH] ERR_INTERNET_DISCONNECTED:OR ERR_CACHE_MISS")
381381
return
382382
}

0 commit comments

Comments
 (0)