From 36b599eb50d15943b1d1dcfa619c89a68c9768d7 Mon Sep 17 00:00:00 2001 From: "marcel.kocisek" Date: Fri, 19 May 2023 13:29:43 +0200 Subject: [PATCH] Cleanup domain name for fs HostOnly cookies --- src/.vuepress/components/cookie-consent/cookie.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/.vuepress/components/cookie-consent/cookie.js b/src/.vuepress/components/cookie-consent/cookie.js index fae255cb..f95224a7 100644 --- a/src/.vuepress/components/cookie-consent/cookie.js +++ b/src/.vuepress/components/cookie-consent/cookie.js @@ -11,15 +11,12 @@ export default class Coookie { * Finsweet merginmaps.com is not able to write cookies to .merginmaps.com, because they have own merginmaps.com cookie. * Prirority is .merginmaps.com, so users options are not sharing between subdomains. * - * Best solution is to use window.location.hostname. + * Best solution is to use window.location.hostname or no domain HostOnly=true cookies. * */ domainName = '' constructor(cookieConsentName) { this.cookieConsentName = cookieConsentName || this.cookieConsentName - if (typeof window === 'object') { - this.domainName = window.location.hostname - } } _getByName(name) {