diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/main.js b/core/src/main.js index 9c7e150bee3..54a7c276928 100644 --- a/core/src/main.js +++ b/core/src/main.js @@ -23,8 +23,6 @@ * */ -import { registerAppsSlideToggle } from './OC/apps.js' -import $ from 'jquery' import 'core-js/stable/index.js' import 'regenerator-runtime/runtime.js' import './Polyfill/index.js' @@ -36,6 +34,7 @@ import OC from './OC/index.js' import './globals.js' import './jquery/index.js' import { initCore } from './init.js' +import { registerAppsSlideToggle } from './OC/apps.js' window.addEventListener('DOMContentLoaded', function() { initCore() @@ -45,6 +44,6 @@ window.addEventListener('DOMContentLoaded', function() { 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)) + window.onhashchange = _.bind(OC.Util.History._onPopState, OC.Util.History) } }) |