Problem/Motivation
Because the library eu_cookie_compliance is loaded on the preprocess hook, it loads also on de administration theme, and eu_cookie_compliance in most cases is not loaded.

Proposed resolution
Check that Drupal.eu_cookie_compliance is defined
| Comment | File | Size | Author |
|---|---|---|---|
| eu_cookie_compliance.png | 52.45 KB | eduardo morales alberti |
Issue fork youtube_cookies-3390431
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
eduardo morales albertiReady to review
Comment #4
omarlopesinoI think the definitive solution would be not loading the library when eu cookie compliance is not loaded, but that implies a bigger refactor and thinking about the rest of integrations like onetrust. So for the moment, this solution is valid enough.
Reviewing.
Comment #5
omarlopesinoThe solution is good, please review the requested changes. Thanks!
Comment #6
eduardo morales albertiComment #8
omarlopesinoThank you! Merged at 2.0.x and created a 2.0.1 release with this bugfix.