Ignore "intent://" urls on webview (#1193)

ignore intent urls
This commit is contained in:
bapeey 2024-09-05 05:11:09 -05:00 committed by GitHub
parent 52036e5664
commit b56a97bb8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -104,6 +104,11 @@ fun WebViewScreenContent(
return false return false
} }
// Ignore intents urls
if (it.url.toString().startsWith("intent://")) {
return true
}
// Continue with request, but with custom headers // Continue with request, but with custom headers
view?.loadUrl(it.url.toString(), headers) view?.loadUrl(it.url.toString(), headers)
} }