Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public struct EditorConfiguration {
/// The locale to use for translations
public var locale = "en"
public var editorAssetsEndpoint: URL?
public var cookies: [HTTPCookie] = []

public init(title: String = "", content: String = "") {
self.title = title
Expand Down
6 changes: 0 additions & 6 deletions ios/Sources/GutenbergKit/Sources/EditorViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ public final class EditorViewController: UIViewController, GutenbergEditorContro
config.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs")
config.setValue(true, forKey: "allowUniversalAccessFromFileURLs")

// The editor shouldn't try to persist cookies – we want complete control over how they're handled
config.websiteDataStore = WKWebsiteDataStore.nonPersistent()
for cookie in configuration.cookies {
config.websiteDataStore.httpCookieStore.setCookie(cookie)
}

// Set-up communications with the editor.
config.userContentController.add(controller, name: "editorDelegate")

Expand Down