diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-07-07 02:23:42 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-07-13 10:18:11 +0200 |
commit | 0fd567a8d372389c72883da4c220c61c5d11183f (patch) | |
tree | 93863f390918aaa774d68a12173714aee2e36fa6 /core/src/main.js | |
parent | c35c42f802242479727b6dc8cb391e730f5dabf2 (diff) | |
download | nextcloud-server-0fd567a8d372389c72883da4c220c61c5d11183f.tar.gz nextcloud-server-0fd567a8d372389c72883da4c220c61c5d11183f.zip |
fix: Remove jQuery from main entry point
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core/src/main.js')
-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) } }) |