fix: Remove jQuery from main entry point

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2023-07-07 02:23:42 +02:00 committed by John Molakvoæ
parent c35c42f802
commit 0fd567a8d3
3 changed files with 5 additions and 6 deletions

View file

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

4
dist/core-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