mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -142,10 +142,11 @@ object CookieManager {
|
||||
}
|
||||
|
||||
fun applyToWebView(url: String) {
|
||||
val baseUrl = NetworkUtils.getBaseUrl(url) ?: return
|
||||
val cookies = CookieStore.getCookie(url).splitNotBlank(";")
|
||||
val cookieManager = CookieManager.getInstance()
|
||||
cookies.forEach {
|
||||
cookieManager.setCookie(url, it)
|
||||
cookieManager.setCookie(baseUrl, it)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user