Skip to content

Commit

Permalink
sofeja
Browse files Browse the repository at this point in the history
  • Loading branch information
bparrishMines committed Dec 19, 2024
1 parent eff8031 commit 98bab3e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
}
}

public func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {
public func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!)
{
registrar.dispatchOnMainThread { onFailure in
self.api.didStartProvisionalNavigation(
pigeonInstance: self, webView: webView, url: webView.url?.absoluteString
Expand All @@ -40,7 +41,7 @@ public class NavigationDelegateImpl: NSObject, WKNavigationDelegate {

public func webView(
_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction,
decisionHandler: @escaping @MainActor @Sendable (WKNavigationActionPolicy) -> Void
decisionHandler: @escaping @MainActor (WKNavigationActionPolicy) -> Void
) {
registrar.dispatchOnMainThread { onFailure in
self.api.decidePolicyForNavigationAction(
Expand Down Expand Up @@ -105,7 +106,9 @@ public class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
}
}

public func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
public func webView(
_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error
) {
registrar.dispatchOnMainThread { onFailure in
self.api.didFailNavigation(pigeonInstance: self, webView: webView, error: error as NSError) {
result in
Expand Down

0 comments on commit 98bab3e

Please sign in to comment.