Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error creating links #1

Open
RickPJ opened this issue Sep 8, 2016 · 0 comments
Open

Syntax error creating links #1

RickPJ opened this issue Sep 8, 2016 · 0 comments

Comments

@RickPJ
Copy link

RickPJ commented Sep 8, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant