Skip to content

Commit

Permalink
fix: clearCookies issue
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx authored Aug 1, 2023
1 parent cee5b58 commit a76e895
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/Plugin/InAppBrowserPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ public class InAppBrowserPlugin: CAPPlugin {
})
}

func clearCookies() {
@objc func clearCookies(_ call: CAPPluginCall) {
HTTPCookieStorage.shared.cookies?.forEach(HTTPCookieStorage.shared.deleteCookie)
call.resolve()
}

@objc func openWebView(_ call: CAPPluginCall) {
Expand Down

0 comments on commit a76e895

Please sign in to comment.