mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 00:33:17 -05:00
Accept third party cookies in WebView instances
May help with Cloudflare.
This commit is contained in:
parent
b79ef5dc79
commit
0ac5f3b93c
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,7 @@ import tachiyomi.core.util.system.logcat
|
||||||
object WebViewUtil {
|
object WebViewUtil {
|
||||||
const val SPOOF_PACKAGE_NAME = "org.chromium.chrome"
|
const val SPOOF_PACKAGE_NAME = "org.chromium.chrome"
|
||||||
|
|
||||||
const val MINIMUM_WEBVIEW_VERSION = 109
|
const val MINIMUM_WEBVIEW_VERSION = 111
|
||||||
|
|
||||||
fun supportsWebView(context: Context): Boolean {
|
fun supportsWebView(context: Context): Boolean {
|
||||||
try {
|
try {
|
||||||
|
@ -47,6 +47,8 @@ fun WebView.setDefaultSettings() {
|
||||||
builtInZoomControls = true
|
builtInZoomControls = true
|
||||||
displayZoomControls = false
|
displayZoomControls = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CookieManager.getInstance().acceptThirdPartyCookies(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun WebView.getWebViewMajorVersion(): Int {
|
private fun WebView.getWebViewMajorVersion(): Int {
|
||||||
|
|
Loading…
Reference in a new issue