Hacker News new | ask | show | jobs
by matsemann 1950 days ago
We use this to force a refresh: https://stackoverflow.com/a/13123626/923847

Or you can use that event to fix what's wrong on the page without a refresh if possible (remove a modal, enable the button again etc)

1 comments

Great! Looks like a proper way to do what I was trying to do. Thank you!

My web app is a game, so fixing everything without a refresh is unfortunately pointless for the most part, and forcing a refresh also ensures players are running the latest version if they've been away for a while.