cookieconsent icon indicating copy to clipboard operation
cookieconsent copied to clipboard

[Bug]: Incompatible with giscus due to data-cookiecategory renamed to data-category (regression)

Open bmarwell opened this issue 9 months ago • 1 comments

Expected Behavior

I can use this with giscus, because its script tag can be enabled with data-cookiecategory

Current Behavior

data-cookiecategory was renamed to data-category, which is also used by giscus for discussion categories. There is no option to rename this back to data-cookiecategory.

Steps to reproduce

Install giscus

Proposed fix or additional info.

Add an option to look for data-cookiecategory.

Version

3.1.0

On which browser do you see the issue?

Firefox, Other

bmarwell avatar Apr 20 '25 17:04 bmarwell

Workaround: Add a div placeholder and then only activate a script, which will append yet another script inside the placeholder like so: https://github.com/bmarwell/jbake-blog-template-author/commit/8c01a485c9338674fb32f4f92a8aaffb916e04e3

bmarwell avatar Apr 20 '25 18:04 bmarwell