diff --git a/ios/Classes/MyCookieManager.swift b/ios/Classes/MyCookieManager.swift index 292c1038..5e5b1e8b 100755 --- a/ios/Classes/MyCookieManager.swift +++ b/ios/Classes/MyCookieManager.swift @@ -133,15 +133,10 @@ public class MyCookieManager: ChannelDelegate { if let cookie = HTTPCookie(properties: properties) { - httpCookieStore.setCookie(cookie, completionHandler: {() in - result(true) - }) + MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in + result(true) + }) } - let cookie = HTTPCookie(properties: properties)! - - MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in - result(true) - }) } public static func getCookies(url: String, result: @escaping FlutterResult) {