Javascript – Replacing history.pushState to send events (getting Ilegal invocation error)
I have a lib which is added in a SPA project which uses router.push(which will eventually call window.history.pushState) to make the url changes. However I need my lib to be able to listen to these changes, however since it is…