Skip to content

Uncaught TypeError: window.onpopstate is not a function #312

@rohan-deshpande

Description

@rohan-deshpande

Director is throwing this error at times, from this line in the code

this.history === true ? window.onpopstate() : window.onhashchange();

Not too sure about this, a bit strange that the window doesn't have this function no?

Edit

Right so I just commented out the setTimeout and replaced it with window.onpopstate = onchange; and this fixed everything. Hopefully that's all that needs to be done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions