Files
notifications-admin/app/assets/javascripts/consent.js
T

16 lines
407 B
JavaScript
Raw Normal View History

2019-12-15 19:36:29 +00:00
(function (window) {
"use strict";
2020-01-21 09:37:38 +00:00
function hasConsentFor (cookieCategory, consentCookie) {
if (consentCookie === undefined) { consentCookie = window.GOVUK.getConsentCookie(); }
2019-12-15 19:36:29 +00:00
if (consentCookie === null) { return false; }
if (!(cookieCategory in consentCookie)) { return false; }
return consentCookie[cookieCategory];
}
window.GOVUK.hasConsentFor = hasConsentFor;
})(window);