Skip to content

Commit 683d1ca

Browse files
windows: Fixed InAppWebViewController.callAsyncJavaScript not working with JSON objects
1 parent c11dab0 commit 683d1ca

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

flutter_inappwebview_windows/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.0+2
2+
3+
- Fixed `InAppWebViewController.callAsyncJavaScript` not working with JSON objects
4+
15
## 0.5.0+1
26

37
- Fixed `onLoadResourceWithCustomScheme` WebView event called every time

flutter_inappwebview_windows/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_inappwebview_windows
22
description: Windows implementation of the flutter_inappwebview plugin.
3-
version: 0.5.0+1
3+
version: 0.5.0+2
44
homepage: https://inappwebview.dev/
55
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_windows
66
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues

flutter_inappwebview_windows/windows/in_app_webview/in_app_webview.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,8 @@ namespace flutter_inappwebview_plugin
12831283

12841284
nlohmann::json parameters = {
12851285
{"expression", source},
1286-
{"awaitPromise", true}
1286+
{"awaitPromise", true},
1287+
{ "returnByValue", true }
12871288
};
12881289

12891290
if (contextId >= 0) {

0 commit comments

Comments
 (0)