mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-12 09:24:15 -04:00
Merge pull request #3275 from alphagov/fix-deleting-of-old-cookie
Set cookie on document host by removing domain
This commit is contained in:
@@ -9,7 +9,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
||||
|
||||
// clear old cookie set by our previous JS, set on the www domain
|
||||
if (window.GOVUK.cookie('seen_cookie_message')) {
|
||||
document.cookie = 'seen_cookie_message=;expires=' + new Date() + ';domain=' + window.location.hostname + ';path=/';
|
||||
document.cookie = 'seen_cookie_message=;expires=' + new Date() + ';path=/';
|
||||
}
|
||||
|
||||
if (consent === null) {
|
||||
|
||||
Reference in New Issue
Block a user