Skip to content

Uncaught SyntaxError: Lexical declaration cannot appear in a single-statement context  #7

@emanuelespies

Description

@emanuelespies

I was using the plugin and it was working fine until we merged it and push to prod. Using the plugin in PROD environment I am having this error:

"Uncaught SyntaxError: Lexical declaration cannot appear in a single-statement context"

Accordingly with Chrome inspector it starts at else if(document.hasFocus())g();else var h=r(window,"focus",(function()

Any suggestion on how to proceed?

I am doing a simple import of your project: import customProtocolCheck from "custom-protocol-check";

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