Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using HTML5 history gives a nil reference error #56

Closed
grkuntzmd opened this issue May 25, 2018 · 1 comment
Closed

Using HTML5 history gives a nil reference error #56

grkuntzmd opened this issue May 25, 2018 · 1 comment

Comments

@grkuntzmd
Copy link

grkuntzmd commented May 25, 2018

When I run

println(dom.GetWindow().History().Length())

I get the error

Uncaught Error: runtime error: invalid memory address or nil pointer dereference

but if I use

println(js.Global.Get("history").Get("length"))

the output is "2", as expected, both running in Chrome Version 66.0.3359.181 (Official Build) (64-bit), the latest version.

@dmitshur
Copy link
Collaborator

This is because window.History() is not implemented, see #41.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants