优化
This commit is contained in:
1 parent
8f376fc234
commit
295d21fa8b
1 file changed
+2
-1
@@ -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