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);