Skip to content

Commit

Permalink
use old style string to be a little bit more compatible with older br…
Browse files Browse the repository at this point in the history
…owsers
  • Loading branch information
salemdar committed Jan 24, 2021
1 parent 7817404 commit 5c8a3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-cookie/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function buildCookieString(name: string, value: string | undefined, optio
// - 4096 bytes per cookie
const cookieLength = str.length + 1;
if (cookieLength > 4096) {
console.log(`Cookie \'${name}\' possibly not set or overflowed because it was too large (${cookieLength} > 4096 bytes)!`);
console.log('Cookie \'' + name + '\' possibly not set or overflowed because it was too large (' + cookieLength + ' > 4096 bytes)!');
}
return str;
}
Expand Down

0 comments on commit 5c8a3d2

Please sign in to comment.