From 840c71b2ef4ec8d4addeb53810449aaf330e3dfd Mon Sep 17 00:00:00 2001 From: Max Zimmermann <72440045+maxmitz@users.noreply.github.com> Date: Wed, 31 May 2023 09:50:58 +0200 Subject: [PATCH] Update MyCookieManager.swift Added force unwrap fix --- ios/Classes/MyCookieManager.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ios/Classes/MyCookieManager.swift b/ios/Classes/MyCookieManager.swift index f8fca748..292c1038 100755 --- a/ios/Classes/MyCookieManager.swift +++ b/ios/Classes/MyCookieManager.swift @@ -131,6 +131,12 @@ public class MyCookieManager: ChannelDelegate { } } + + if let cookie = HTTPCookie(properties: properties) { + httpCookieStore.setCookie(cookie, completionHandler: {() in + result(true) + }) + } let cookie = HTTPCookie(properties: properties)! MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in