Skip to content

Commit 0fd567a

Browse files
susnuxskjnldsv
authored andcommitted
fix: Remove jQuery from main entry point
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent c35c42f commit 0fd567a

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

core/src/main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*
2424
*/
2525

26-
import { registerAppsSlideToggle } from './OC/apps.js'
27-
import $ from 'jquery'
2826
import 'core-js/stable/index.js'
2927
import 'regenerator-runtime/runtime.js'
3028
import './Polyfill/index.js'
@@ -36,6 +34,7 @@ import OC from './OC/index.js'
3634
import './globals.js'
3735
import './jquery/index.js'
3836
import { initCore } from './init.js'
37+
import { registerAppsSlideToggle } from './OC/apps.js'
3938

4039
window.addEventListener('DOMContentLoaded', function() {
4140
initCore()
@@ -45,6 +44,6 @@ window.addEventListener('DOMContentLoaded', function() {
4544
if (window.history.pushState) {
4645
window.onpopstate = _.bind(OC.Util.History._onPopState, OC.Util.History)
4746
} else {
48-
$(window).on('hashchange', _.bind(OC.Util.History._onPopState, OC.Util.History))
47+
window.onhashchange = _.bind(OC.Util.History._onPopState, OC.Util.History)
4948
}
5049
})

dist/core-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)