From 4f848b188285e086c08e55471343932460b877ab Mon Sep 17 00:00:00 2001 From: Andreas Dorner <66420187+endlacer@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:33:13 +0100 Subject: [PATCH] chore: remove unnecessary check --- projects/ngx-cookie-service/src/lib/cookie.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ngx-cookie-service/src/lib/cookie.service.ts b/projects/ngx-cookie-service/src/lib/cookie.service.ts index 20e0463..fe90f74 100644 --- a/projects/ngx-cookie-service/src/lib/cookie.service.ts +++ b/projects/ngx-cookie-service/src/lib/cookie.service.ts @@ -92,7 +92,7 @@ export class CookieService { * @since: 1.0.0 */ get(name: string): string { - if (this.documentIsAccessible && this.check(name)) { + if (this.check(name)) { name = encodeURIComponent(name); const regExp: RegExp = CookieService.getCookieRegExp(name);