Merge branch 'master' of https://github.com/maxmitz/flutter_inappwebview_forceunwrap_issue into maxmitz-master
This commit is contained in:
commit
c98a92d520
|
@ -131,11 +131,14 @@ public class MyCookieManager: ChannelDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
let cookie = HTTPCookie(properties: properties)!
|
||||
|
||||
MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in
|
||||
result(true)
|
||||
})
|
||||
if let cookie = HTTPCookie(properties: properties) {
|
||||
MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in
|
||||
result(true)
|
||||
})
|
||||
} else {
|
||||
result(false)
|
||||
}
|
||||
}
|
||||
|
||||
public static func getCookies(url: String, result: @escaping FlutterResult) {
|
||||
|
|
Loading…
Reference in New Issue