Skip to content

Commit

Permalink
user dispatch on main thread again
Browse files Browse the repository at this point in the history
  • Loading branch information
bparrishMines committed Dec 19, 2024
1 parent 56d57b4 commit 4c38801
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ extension NavigationDelegateImpl {
_ webView: WKWebView, decidePolicyFor navigationAction: WebKit.WKNavigationAction,
decisionHandler: @escaping @MainActor (WebKit.WKNavigationActionPolicy) -> Void
) {
registrar.dispatchOnMainThread { onFailure in
registrar.dispatchOnMainThread { _ in
self.api.decidePolicyForNavigationAction(
pigeonInstance: self, webView: webView, navigationAction: navigationAction
) { result in
DispatchQueue.main.async {
self.registrar.dispatchOnMainThread { onFailure in
switch result {
case .success(let policy):
switch policy {
Expand Down

0 comments on commit 4c38801

Please sign in to comment.