mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 23:45:08 +01:00
parent
d9c0b1ce7d
commit
548f7f415a
@ -100,6 +100,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 New Issue
Block a user