Skip to content

Commit ed07d3f

Browse files
authored
Merge pull request #3 from nubank/fix-flutter-desktop
Fix flutter desktop
2 parents dd4e3d0 + fc18f40 commit ed07d3f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

flutter_inappwebview/pubspec.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ dependencies:
2727
url: https://github.com/nubank/flutter_inappwebview.git
2828
ref: b0826c4efd2f2248a47679f94f4bbd1fefb57399
2929
path: flutter_inappwebview_ios
30-
flutter_inappwebview_macos: ^1.0.11
30+
flutter_inappwebview_macos:
31+
git:
32+
url: https://github.com/nubank/flutter_inappwebview.git
33+
ref: d1175c9054443ad84a8f9a61ca9e3afe3656d36a
34+
path: flutter_inappwebview_macos
3135
flutter_inappwebview_web: ^1.0.8
3236

3337
dev_dependencies:

flutter_inappwebview_macos/macos/Classes/InAppWebView/InAppWebView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ public class InAppWebView: WKWebView, WKUIDelegate,
867867
}
868868
}
869869

870-
public override func evaluateJavaScript(_ javaScriptString: String, completionHandler: ((Any?, Error?) -> Void)? = nil) {
870+
open override func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor (Any?, Error?) -> Void)? = nil) {
871871
if let applePayAPIEnabled = settings?.applePayAPIEnabled, applePayAPIEnabled {
872872
if let completionHandler = completionHandler {
873873
completionHandler(nil, nil)

0 commit comments

Comments
 (0)