monkey-front-core 0.0.181 → 0.0.182

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -336,15 +336,16 @@ class MonkeyEcxCookieStorageService {
336
336
  // not to do
337
337
  }
338
338
  setCookie(name, value, environment) {
339
- this.removeCookie(name);
339
+ this.removeCookie(name, environment);
340
340
  const { urlDomain } = environment;
341
341
  this.cookieService.set(name, value, undefined, '/', `.${urlDomain}`, true);
342
342
  }
343
343
  getCookie(name) {
344
344
  return this.cookieService.get(name);
345
345
  }
346
- removeCookie(name) {
347
- this.cookieService.delete(name, '/');
346
+ removeCookie(name, environment) {
347
+ const { urlDomain } = environment;
348
+ this.cookieService.delete(name, '/', `.${urlDomain}`, true);
348
349
  }
349
350
  }
350
351
  MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$2.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });