Is there any event I can subscribe to, and how, to be able to monitor URL change (including hash change)?
Currently I do this with an setInterval() method, and check every second if url is changed…
But there must be some more efficient way I suppose?
I know in Javascript there is window.onhashchange event, but how do I get reference to window inside my AddOn code?