Update WebViewActivity.kt (#3617)
This code added is for some extension that blocks tachiyomi, by tricking it that it was sent by a android browser, nothing major changes,
This commit is contained in:
parent
4929e66ecc
commit
3f1355c413
1 changed files with 3 additions and 1 deletions
|
@ -100,7 +100,9 @@ class WebViewActivity : BaseActivity<WebviewActivityBinding>() {
|
|||
|
||||
binding.webview.webViewClient = object : WebViewClientCompat() {
|
||||
override fun shouldOverrideUrlCompat(view: WebView, url: String): Boolean {
|
||||
view.loadUrl(url)
|
||||
val android_browser: MutableMap<String, String> = HashMap()
|
||||
android_browser["X-Requested-With"] = "com.android.browser"
|
||||
view.loadUrl(url,android_browser)
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue