Skip to content

Commit

Permalink
fix: use Date.now() for test cookie value (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpagtakhan authored Jan 28, 2022
1 parent 064944c commit 03e270e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const areCookiesEnabled = (opts = {}) => {
}
let _areCookiesEnabled = false;
try {
const uid = String(new Date());
const uid = String(Date.now());
set(cookieName, uid, opts);
utils.log.info(`Testing if cookies available`);
_areCookiesEnabled = get(cookieName + '=') === uid;
Expand Down

0 comments on commit 03e270e

Please sign in to comment.