aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/main.js
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-07-13 13:53:27 +0200
committerGitHub <noreply@github.com>2023-07-13 13:53:27 +0200
commitc5a6c7e0dd9666cc8c550b616d13118616f67779 (patch)
treef252ceab0fb381db5e2c7a5826d0a2668076f6b8 /core/src/main.js
parenta82291f17997e470c84c496731e66e3f3b13c6a3 (diff)
parent0fd567a8d372389c72883da4c220c61c5d11183f (diff)
downloadnextcloud-server-c5a6c7e0dd9666cc8c550b616d13118616f67779.tar.gz
nextcloud-server-c5a6c7e0dd9666cc8c550b616d13118616f67779.zip
Merge pull request #39210 from nextcloud/chore/clean-core-main-entry
Remove jQuery from main entry point where not needed
Diffstat (limited to 'core/src/main.js')
-rw-r--r--core/src/main.js5
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)
}
})