Skip to content

Commit 07fe92a

Browse files
author
古科明
committed
fix bug android webview httperror #491
1 parent 760d6bd commit 07fe92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/flutter_webview_plugin/BrowserClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void onReceivedError(WebView view, int errorCode, String description, Str
104104
super.onReceivedError(view, errorCode, description, failingUrl);
105105
Map<String, Object> data = new HashMap<>();
106106
data.put("url", failingUrl);
107-
data.put("code", errorCode);
107+
data.put("code", Integer.toString(errorCode));
108108
FlutterWebviewPlugin.channel.invokeMethod("onHttpError", data);
109109
}
110110

0 commit comments

Comments
 (0)