Skip to content

Commit d42d704

Browse files
authored
Merge pull request #225 from adamkobor/interception-enhancements
handle null value of targetFrame in iOS interception logic
2 parents ef53600 + 8e29bcd commit d42d704

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webview/src/iosMain/kotlin/com/multiplatform/webview/web/WKNavigationDelegate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class WKNavigationDelegate(
123123
}
124124
if (url != null && !isRedirect &&
125125
navigator.requestInterceptor != null &&
126-
decidePolicyForNavigationAction.targetFrame?.mainFrame == true
126+
decidePolicyForNavigationAction.targetFrame?.mainFrame != false
127127
) {
128128
navigator.requestInterceptor.apply {
129129
val request = decidePolicyForNavigationAction.request

0 commit comments

Comments
 (0)