Detect properly if OneTrust is initialized

Created on 1 October 2024, about 2 months ago

Problem/Motivation

Module throws browser console errors when attempting to use the OnConsentChanged function when OneTrust is not fully initialised.

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇪🇸Spain frouco

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @frouco
  • 🇪🇸Spain frouco

    Ready to be reviewed

  • 🇪🇸Spain albeorte

    Checked and working as expected!

  • 🇪🇸Spain eduardo morales alberti Spain, 🇪🇺

    Same error on our project:

    TypeError: OneTrust.OnConsentChanged is not a function
        at Drupal.youtubeCookiesOneTrust.onConsentChange (js_HHetFvoOZds01hjTV1yXGVp_mlhSzB51ARUMnfYybE0.js?scope=footer&delta=0&language=us&theme=radix&include=eJyNUltywyAMvJANt-gF2n9GYBmTyCgFkca3L3bssfPoTH9A7IplJQQnuBli6DBp2GMlQ2JrMTXZDYDJ9AGpMwLeZJkI9ecCf8zoF_jPGdtSE3Thppe0ZuIixaJxzOeAWXNESSXLM1F34mT5pleiXYl2IxrP7AlnC9rL-HgE_3xWczGbo4g_mVCk1viCmA4ECKa9VEfF6kOsHJcoqZppIEqwLHrdVc9pbBwFjJJDh-YKFKpe4GhO3wXTpN1V3SO1cvjf_NDj7ujNDb2GnPJT55HQienrT0qI3hBYpC0lD3zR87IBFOLZCN-JDnO9EjbuWl9kvazGgjv7VDvRNRkhucHAJRgowo7HS-0l6j_wR3cDzvP1Yqfqx3jAF6lNcS_6UcsTW6A3PziA6EOsIkPTUx2NeVFLycf5uKuNGEtLeEVqc30P37AjhPgL0D5Cig:266:16)
        at js_HHetFvoOZds01hjTV1yXGVp_mlhSzB51ARUMnfYybE0.js?scope=footer&delta=0&language=us&theme=radix&include=eJyNUltywyAMvJANt-gF2n9GYBmTyCgFkca3L3bssfPoTH9A7IplJQQnuBli6DBp2GMlQ2JrMTXZDYDJ9AGpMwLeZJkI9ecCf8zoF_jPGdtSE3Thppe0ZuIixaJxzOeAWXNESSXLM1F34mT5pleiXYl2IxrP7AlnC9rL-HgE_3xWczGbo4g_mVCk1viCmA4ECKa9VEfF6kOsHJcoqZppIEqwLHrdVc9pbBwFjJJDh-YKFKpe4GhO3wXTpN1V3SO1cvjf_NDj7ujNDb2GnPJT55HQienrT0qI3hBYpC0lD3zR87IBFOLZCN-JDnO9EjbuWl9kvazGgjv7VDvRNRkhucHAJRgowo7HS-0l6j_wR3cDzvP1Yqfqx3jAF6lNcS_6UcsTW6A3PziA6EOsIkPTUx2NeVFLycf5uKuNGEtLeEVqc30P37AjhPgL0D5Cig:300:39
    
  • Pipeline finished with Skipped
    about 1 month ago
    #298857
    • frouco committed de17517f on 2.0.x
      Issue #3478117 by albeorte, eduardo morales alberti: Detect properly if...
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024