Skip to content

Commit 9f0fe14

Browse files
authored
Merge pull request #314 from MerginMaps/CU-861mu7crd_cookie_consent
Cleanup domain name for fs HostOnly cookies
2 parents e6dd9a4 + 36b599e commit 9f0fe14

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/.vuepress/components/cookie-consent/cookie.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ export default class Coookie {
1111
* Finsweet merginmaps.com is not able to write cookies to .merginmaps.com, because they have own merginmaps.com cookie.
1212
* Prirority is .merginmaps.com, so users options are not sharing between subdomains.
1313
*
14-
* Best solution is to use window.location.hostname.
14+
* Best solution is to use window.location.hostname or no domain HostOnly=true cookies.
1515
* */
1616
domainName = ''
1717

1818
constructor(cookieConsentName) {
1919
this.cookieConsentName = cookieConsentName || this.cookieConsentName
20-
if (typeof window === 'object') {
21-
this.domainName = window.location.hostname
22-
}
2320
}
2421

2522
_getByName(name) {

0 commit comments

Comments
 (0)