mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Cookie consent fix
This commit is contained in:
parent
d0e58b1ef9
commit
97395c46df
@ -30,17 +30,4 @@ class Domain
|
|||||||
{
|
{
|
||||||
return 'maildelivery@' . static::getDomainFromId($id);
|
return 'maildelivery@' . static::getDomainFromId($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getCookieDomain($url)
|
|
||||||
{
|
|
||||||
if (! Utils::isNinjaProd() || Utils::isReseller()) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strpos($url, '.services') !== false) {
|
|
||||||
return '.invoice.services';
|
|
||||||
} else {
|
|
||||||
return '.invoiceninja.com';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user