diff --git a/public_html/js/Router.js b/public_html/js/Router.js index 31240268..2859988b 100644 --- a/public_html/js/Router.js +++ b/public_html/js/Router.js @@ -46,9 +46,11 @@ App.Router = function(_, jQuery, promise, util, appState, presenterManager) { } function start() { - window.onpopstate = function() { - dispatch(); - }; + if ('onhashchange' in window) { + window.onhashchange = dispatch; + } else { + window.onpopstate = dispatch; + } dispatch(); }