Skip to content

Commit

Permalink
Merge branch 'Feature/Fix-persistance' of https://github.com/EA-YOUHO…
Browse files Browse the repository at this point in the history
…U/flutter_inappwebview into EA-YOUHOU-Feature/Fix-persistance
  • Loading branch information
pichillilorenzo committed Apr 17, 2022
2 parents 25e9ea6 + 9318710 commit bee61b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/InAppWebView/InAppWebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, WKNavi
// See also https://forums.developer.apple.com/thread/97194
// check if websiteDataStore has not been initialized before
if(!options.incognito && options.cacheEnabled) {
configuration.websiteDataStore = WKWebsiteDataStore.nonPersistent()
configuration.websiteDataStore = WKWebsiteDataStore.default()
}
for cookie in HTTPCookieStorage.shared.cookies ?? [] {
configuration.websiteDataStore.httpCookieStore.setCookie(cookie, completionHandler: nil)
Expand Down

0 comments on commit bee61b3

Please sign in to comment.