mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed router on IE
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user