diff --git a/assets/js/user_consent_functions.js b/assets/js/user_consent_functions.js deleted file mode 100644 index 5391fef8f..000000000 --- a/assets/js/user_consent_functions.js +++ /dev/null @@ -1,12 +0,0 @@ -(function (Drupal) { - 'use strict'; - - window.chat_user_consent = { - retrieveUserConsent: () => (Drupal.cookieConsent.getConsentStatus(['chat'])), - confirmUserConsent: () => { - if (Drupal.cookieConsent.getConsentStatus(['chat'])) return; - Drupal.cookieConsent.setAcceptedCategories(['chat']); - } - }; - -})(Drupal);