Closed jonayrodriguezmrf closed 1 year ago
This is almost certainly the implementation issue of bundling smartbanner's source code (release code is tested and linted) in 3rd party applications, but since the change is harmless and could potentially avoid the problems you describe, there will be a release changing this.
Steps to reproduce:
What happens: When I click the close button, I get the error
SyntaxError: Unexpected token ')'
, and it doesn't close. The next time, it closesWhat should happen: Close without error.
The problem is in the
javascript:void();
It's missing the 0,javascript:void(0);
https://github.com/ain/smartbanner.js/blob/main/src/smartbanner.js#L136