1
0
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:
Hillel Coren 2018-05-08 12:22:49 +03:00
parent d0e58b1ef9
commit 97395c46df

View File

@ -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';
}
}
} }