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

ignore intent urls

(cherry picked from commit b56a97bb8eaf336c75e69e7fb32b87431d991bb3)
This commit is contained in:
bapeey 2024-09-05 05:11:09 -05:00 committed by Cuong-Tran
parent a2d8c8f45d
commit 8fa56c5efb
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

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)
}