Could just check `window.location.hash`?