This commit is contained in:
Lorenzo Pichilli 2023-11-10 14:14:05 +01:00
commit c98a92d520
1 changed files with 7 additions and 4 deletions

View File

@ -131,11 +131,14 @@ public class MyCookieManager: ChannelDelegate {
} }
} }
let cookie = HTTPCookie(properties: properties)!
if let cookie = HTTPCookie(properties: properties) {
MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in
result(true) result(true)
}) })
} else {
result(false)
}
} }
public static func getCookies(url: String, result: @escaping FlutterResult) { public static func getCookies(url: String, result: @escaping FlutterResult) {