parent
840c71b2ef
commit
ab98855c8a
|
@ -133,16 +133,11 @@ public class MyCookieManager: ChannelDelegate {
|
||||||
|
|
||||||
|
|
||||||
if let cookie = HTTPCookie(properties: properties) {
|
if let cookie = HTTPCookie(properties: properties) {
|
||||||
httpCookieStore.setCookie(cookie, completionHandler: {() in
|
|
||||||
result(true)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
let cookie = HTTPCookie(properties: properties)!
|
|
||||||
|
|
||||||
MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in
|
MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in
|
||||||
result(true)
|
result(true)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static func getCookies(url: String, result: @escaping FlutterResult) {
|
public static func getCookies(url: String, result: @escaping FlutterResult) {
|
||||||
var cookieList: [[String: Any?]] = []
|
var cookieList: [[String: Any?]] = []
|
||||||
|
|
Loading…
Reference in New Issue