Jquery error loop when cookieClass is empty

Created on 16 September 2024, 5 months ago

Problem/Motivation

The following error kept popping up in a loop:

Uncaught SyntaxError: Failed to execute 'querySelector' on 'Document': The provided selector is empty.

This is due to the parameter "cookieClass" being empty

Steps to reproduce

When having the module installed, have none of the "cookieconsent-optin" classes on the site.

Proposed resolution

Create a check when "cookieClass" remains empty so it doesn't loop anymore

Remaining tasks

  • Create a patch/MR
  • Test
  • Release
🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇳🇱Netherlands arantxio Dordrecht

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024