Skip to content

Commit

Permalink
Merge pull request #288 from istrau2/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect constant
  • Loading branch information
kelvin-lu authored Aug 26, 2020
2 parents ed3c638 + a486ed3 commit 16d017f
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 @@ -51,7 +51,7 @@ const set = (name, value, opts) => {
const areCookiesEnabled = () => {
const uid = String(new Date());
try {
const cookieName = Constants.COOKIE_TEST + base64Id();
const cookieName = Constants.COOKIE_TEST_PREFIX + base64Id();
set(cookieName, uid, {});
const _areCookiesEnabled = get(cookieName + '=') === uid;
set(cookieName, null, {});
Expand Down

0 comments on commit 16d017f

Please sign in to comment.