Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/.vuepress/components/cookie-consent/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down