1
0
Fork 0
mirror of https://github.com/mihonapp/mihon.git synced 2025-03-12 01:08:28 +03:00

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

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
}
// Ignore intents urls
if (it.url.toString().startsWith("intent://")) {
return true
}
// Continue with request, but with custom headers
view?.loadUrl(it.url.toString(), headers)
}