Commit e49937f5 authored by Sven Berg Ryen's avatar Sven Berg Ryen Committed by Sven Berg Ryen
Browse files

Issue #3254210 by svenryen, Driskell: hasAgreed / hasAgreedWithCategory do not...

Issue #3254210 by svenryen, Driskell: hasAgreed / hasAgreedWithCategory do not take into account mode
parent 84097ef8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1029,7 +1029,7 @@
  Drupal.eu_cookie_compliance.hasAgreed = function (category) {
    var agreed = (_euccCurrentStatus === cookieValueAgreedShowThankYou || _euccCurrentStatus === cookieValueAgreed);

    if (category !== undefined && agreed) {
    if (category !== undefined && agreed && drupalSettings.eu_cookie_compliance.method === 'categories') {
      agreed = Drupal.eu_cookie_compliance.hasAgreedWithCategory(category);
    }