mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-21 20:27:06 +03:00
fix: Avoid blob in webview (#1179)
This commit is contained in:
parent
6f372f34c7
commit
509ecedb3a
1 changed files with 6 additions and 0 deletions
|
@ -124,6 +124,12 @@ fun WebViewScreenContent(
|
|||
request: WebResourceRequest?,
|
||||
): Boolean {
|
||||
request?.let {
|
||||
// Don't attempt to open blobs as webpages
|
||||
if (it.url.toString().startsWith("blob:http")) {
|
||||
return false
|
||||
}
|
||||
|
||||
// Continue with request, but with custom headers
|
||||
view?.loadUrl(it.url.toString(), headers)
|
||||
}
|
||||
return super.shouldOverrideUrlLoading(view, request)
|
||||
|
|
Loading…
Reference in a new issue