diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/main.js b/core/src/main.js index b8c1c23628f..29c657f5db3 100644 --- a/core/src/main.js +++ b/core/src/main.js @@ -35,4 +35,11 @@ import { registerAppsSlideToggle } from './OC/apps' $(document).ready(function() { initCore() registerAppsSlideToggle() + + // fallback to hashchange when no history support + if (window.history.pushState) { + window.onpopstate = _.bind(OC.Util.History._onPopState, OC.Util.History) + } else { + $(window).on('hashchange', _.bind(OC.Util.History._onPopState, OC.Util.History)) + } }) |