Browse Source

Fix browser back button (#17627)

Fix browser back button
tags/v18.0.0beta1
John Molakvoæ 4 years ago
parent
commit
ac1585b316
No account linked to committer's email address

+ 6
- 6
core/js/dist/login.js
File diff suppressed because it is too large
View File


+ 1
- 1
core/js/dist/login.js.map
File diff suppressed because it is too large
View File


+ 255
- 234
core/js/dist/main.js
File diff suppressed because it is too large
View File


+ 1
- 1
core/js/dist/main.js.map
File diff suppressed because it is too large
View File


+ 4
- 4
core/js/dist/maintenance.js
File diff suppressed because it is too large
View File


+ 1
- 1
core/js/dist/maintenance.js.map
File diff suppressed because it is too large
View File


+ 7
- 0
core/src/main.js View File

@@ -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))
}
})

Loading…
Cancel
Save