3dstreet icon indicating copy to clipboard operation
3dstreet copied to clipboard

if a user enters a new hash then update scene

Open kfarr opened this issue 2 years ago β€’ 0 comments

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();
        });

kfarr avatar Jun 26 '23 05:06 kfarr