File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/.vuepress/components/cookie-consent Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments