@capgo/inappbrowser 6.0.11 → 6.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -236,16 +236,9 @@ public class InAppBrowserPlugin
236
236
  CookieManager cookieManager = CookieManager.getInstance();
237
237
  String cookie = cookieManager.getCookie(url);
238
238
  if (cookie != null) {
239
- String[] cookies = cookie.split(";");
240
- for (String c : cookies) {
241
- String cookieName = c.substring(0, c.indexOf("="));
242
- cookieManager.setCookie(
243
- url,
244
- cookieName + "=; Expires=Thu, 01 Jan 1970 00:00:01 GMT"
245
- );
246
- if (clearCache) {
247
- cookieManager.removeSessionCookie();
248
- }
239
+ cookieManager.removeAllCookies(null);
240
+ if (Boolean.TRUE.equals(clearCache)) {
241
+ cookieManager.removeSessionCookies(null);
249
242
  }
250
243
  }
251
244
  call.resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/inappbrowser",
3
- "version": "6.0.11",
3
+ "version": "6.0.13",
4
4
  "description": "Capacitor plugin in app browser",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",