Skip to content

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

@jameswhayman

Description

@jameswhayman

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),

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