bitovi / academy

Everything we know about frontend, backend, UX, and Devops consulting and management.
https://www.bitovi.com/academy/
14 stars 3 forks source link

Fix Bug in Academy: Not remembering scroll position. #822

Open snoattoh opened 3 weeks ago

snoattoh commented 3 weeks ago

window.history.state was null thus the eventListener on scroll couldn't finish running, added push state after checking hash so that it should always have a value on load