Skip to content

Syntax error creating linksΒ #1

@RickPJ

Description

@RickPJ

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions