3dstreet
3dstreet copied to clipboard
if a user enters a new hash then update scene
As a user, it would be nice for 3dstreet to load the new URL if hash is modified and user presses enter
Window: hashchange javascript event
I tried this in init method but it didn't work -- the event listener fires but it says that.init() is not a function which isn't true
var that = this;
window.addEventListener("hashchange", (that) => {
that.init();
});