Fix browser back button

Fixes #17108

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
Roeland Jago Douma 2019-10-21 21:36:17 +02:00 committed by npmbuildbot[bot]
parent 348a7bb683
commit e695d87b14
7 changed files with 8 additions and 1 deletions

BIN
core/js/dist/login.js vendored

Binary file not shown.

Binary file not shown.

BIN
core/js/dist/main.js vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -35,4 +35,11 @@ $(document).ready(function () {
initCore(); initCore();
registerAppsSlideToggle(); 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));
}
})