Skip to content

Commit

Permalink
Merge pull request #225 from adamkobor/interception-enhancements
Browse files Browse the repository at this point in the history
handle null value of targetFrame in iOS interception logic
  • Loading branch information
KevinnZou authored Sep 27, 2024
2 parents ef53600 + 8e29bcd commit d42d704
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class WKNavigationDelegate(
}
if (url != null && !isRedirect &&
navigator.requestInterceptor != null &&
decidePolicyForNavigationAction.targetFrame?.mainFrame == true
decidePolicyForNavigationAction.targetFrame?.mainFrame != false
) {
navigator.requestInterceptor.apply {
val request = decidePolicyForNavigationAction.request
Expand Down

0 comments on commit d42d704

Please sign in to comment.