We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a125498 commit b10cd7fCopy full SHA for b10cd7f
1 file changed
core/src/core-plugins.ts
@@ -110,7 +110,7 @@ export class CapacitorCookiesPluginWeb extends WebPlugin implements CapacitorCoo
110
const encodedValue = encode(options.value);
111
112
// Clean & sanitize options
113
- const expires = `; expires=${(options.expires || '').replace('expires=', '')}`; // Default is "; expires="
+ const expires = options.expires ? `; expires=${options.expires.replace('expires=', '')}` : '';
114
115
const path = (options.path || '/').replace('path=', ''); // Default is "path=/"
116
const domain = options.url != null && options.url.length > 0 ? `domain=${options.url}` : '';
0 commit comments