Skip to content

SmartMenus should log errors to console, not use alert() #242

@Htbaa

Description

@Htbaa

There are two alert() calls in the source code of SmartMenus:

The call to alert() stops rendering the page and depending on the website can appear multiple times. Instead of showing this error it should log to console with console.error(). That way visitors of a website aren't hindered by misconfiguration.

Edit: I have an existing website built with WordPress and Elementor Pro which seemingly uses this plugin (1.2.1 now, but before 1.1.x). There are no elements with the data-sm-options attribute yet the alert pops-up. It didn't do that with the 1.1.x version of SmartMenus.

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