-
Notifications
You must be signed in to change notification settings - Fork 145
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
Missing character causes error #42
Comments
Hi @jenstornell! Could you show me the code are you using? |
Yes, this is the lib code, and it is ok. I want to see your code =) But to fix it, you should add a semicolon on your code, if you are using IIFE, for example, like this. |
@jenstornell you should use minified code too, instead the source. |
I combine ajax.js with this file: https://github.com/Alex-D/Cookies-EU-banner/blob/master/src/cookies-eu-banner.js (cookie script last).
Maybe it's a semicolon missing in the cookie js then? https://github.com/Alex-D/Cookies-EU-banner/blob/master/src/cookies-eu-banner.js#L1 |
About minified code... I don't like to use the minified code. Instead I use Gulp to minify it. That way it's easier for me to debug it on the localhost. So, minified on the live server, not minified on the localhost. |
No problem about minified code. You can use source in this case =)
Yes, adding a semicolon at the first position, it should works like a charm =) |
The js ends with:
That cases and error if I merge it with other javascripts.
Change it to:
The text was updated successfully, but these errors were encountered: