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

Closed snoattoh closed 3 months ago

snoattoh commented 5 months 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