Skip to content

Commit

Permalink
UserHighlighterSimple: remove mediawiki.Uri (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Feb 19, 2025
1 parent 3789509 commit 1b2e892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UserHighlighterSimple/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Fire after wiki content is added to the DOM, such as when first loading a page, or when a gadget such as the XTools gadget loads.
mw.hook( 'wikipage.content' ).add( async () => {
await mw.loader.using( [ 'mediawiki.util', 'mediawiki.Uri', 'mediawiki.Title' ], async () => {
await mw.loader.using( [ 'mediawiki.util', 'mediawiki.Title' ], async () => {
await ( new UserHighlighterSimple( $, mw, window ) ).execute();
} );
} );

// Fire after an edit is successfully saved via JavaScript, such as edits by the Visual Editor and HotCat.
mw.hook( 'postEdit' ).add( async () => {
await mw.loader.using( [ 'mediawiki.util', 'mediawiki.Uri', 'mediawiki.Title' ], async () => {
await mw.loader.using( [ 'mediawiki.util', 'mediawiki.Title' ], async () => {
await ( new UserHighlighterSimple( $, mw, window ) ).execute();
} );
} );

0 comments on commit 1b2e892

Please sign in to comment.