You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just installed this library in a couple of Drupal sites in conjunction with the Drupal module, as I wanted a very lightweight cookie banner.
However, links in the banner didn't work, because of a syntax error in the JS. On line 109 of the non-minified code, the first argument to _createLink is opts.links.index, it should be opts.links[index]. (You can't reference object members using "." with variables)
After fixing that, it does the job well with minimum complications.
The text was updated successfully, but these errors were encountered:
I've just installed this library in a couple of Drupal sites in conjunction with the Drupal module, as I wanted a very lightweight cookie banner.
However, links in the banner didn't work, because of a syntax error in the JS. On line 109 of the non-minified code, the first argument to _createLink is opts.links.index, it should be opts.links[index]. (You can't reference object members using "." with variables)
After fixing that, it does the job well with minimum complications.
The text was updated successfully, but these errors were encountered: