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

SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode. #8

Open
jwhayman opened this issue Sep 17, 2020 · 1 comment

Comments

@jwhayman
Copy link

Hi there, in some versions of Safari for iOS, the following error occurs:
SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.

I believe this relates to this line:

const $button = $('<div>', settings.closeButtonOptions.attributes),

@kobizz
Copy link
Owner

kobizz commented Oct 20, 2020

Hey @jwhayman,

Sorry for the late response.

You are right. I'll look into it to find out the best practice for resolving this issue without using old syntax.

Thanks!

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

2 participants