Skip to content

Commit

Permalink
Make Cookies.remove() delete the cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Truffula authored Dec 2, 2021
1 parent 5566e5b commit f726787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aurelia-plugins-cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Cookies {
let str = `${this._encode(key)}=${value != null ? this._encode(value) : ''}`;
if (options.path) str += `; path=${options.path}`;
if (options.domain) str += `; domain=${options.domain}`;
if (options.expires) str += `; expires=${expires.toUTCString()}`;
if (expires) str += `; expires=${expires.toUTCString()}`;
if (options.secure) str += '; secure';
document.cookie = str;
}
Expand Down Expand Up @@ -59,4 +59,4 @@ export class Cookies {
}
return obj;
}
}
}

0 comments on commit f726787

Please sign in to comment.