From 5c8a3d290be4148888a33b985b3e4d7d6a77b9f8 Mon Sep 17 00:00:00 2001 From: Samet Alemdar Date: Sun, 24 Jan 2021 01:41:56 +0100 Subject: [PATCH] use old style string to be a little bit more compatible with older browsers --- projects/ngx-cookie/src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ngx-cookie/src/lib/utils.ts b/projects/ngx-cookie/src/lib/utils.ts index b528d77b..96d12c47 100644 --- a/projects/ngx-cookie/src/lib/utils.ts +++ b/projects/ngx-cookie/src/lib/utils.ts @@ -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; }