Fix browser back button (#17627)

Fix browser back button
This commit is contained in:
John Molakvoæ 2019-10-22 11:36:36 +02:00 committed by GitHub
commit ac1585b316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 459 additions and 431 deletions

12
core/js/dist/login.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

857
core/js/dist/main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -35,4 +35,11 @@ import { registerAppsSlideToggle } from './OC/apps'
$(document).ready(function() { $(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))
}
}) })