Skip to content

Uncaught SyntaxError: Failed to execute 'querySelector' on 'Document': '#/lobby/' is not a valid selector #145

Closed
@ezzatron

Description

@ezzatron

Just encountered this bug when mixing an AngularJS single-page app with iframe-resizer. This is happening in findTarget(), which is being called from checkLocationHash().

The resizer code is assuming that any URI fragment represents an anchor/element within the page, which is not always true. Perhaps you could simply surround in a try/catch, or check the fragment against a regex before looking for a target element?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions