mirror of
https://github.com/nextcloud/server.git
synced 2026-05-13 17:10:43 -04:00
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:
parent
348a7bb683
commit
e695d87b14
7 changed files with 314 additions and 285 deletions
14
core/js/dist/login.js
vendored
14
core/js/dist/login.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/login.js.map
vendored
2
core/js/dist/login.js.map
vendored
File diff suppressed because one or more lines are too long
560
core/js/dist/main.js
vendored
560
core/js/dist/main.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/main.js.map
vendored
2
core/js/dist/main.js.map
vendored
File diff suppressed because one or more lines are too long
10
core/js/dist/maintenance.js
vendored
10
core/js/dist/maintenance.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/maintenance.js.map
vendored
2
core/js/dist/maintenance.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -35,4 +35,11 @@ $(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));
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue