3 ms·
Thanks. I think this is a consequence of me using URL hashes for modal state instead of implementing my own logic. That modal is also for resetting your score,
by neet-vc 5y ago
Thanks. I think this is a consequence of me using URL hashes for modal state instead of implementing my own logic.
That modal is also for resetting your score, if you'd like.
- koolba 5y agoURL based state is fine but you should use “replace” or “replaceState” so that each new location isn’t considered a new history page: https://developer.mozilla.org/en-US/docs/Web/API/Location/replace https://developer.mozilla.org/en-US/docs/Web/API/Location/re... https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState https://developer.mozilla.org/en-US/docs/Web/API/History/rep...
- neet-vc 5y agoRight, I was using CSS :target and plain links without click handlers.