-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UserHighlighterSimple: remove mediawiki.Uri (deprecated)
- Loading branch information
1 parent
3789509
commit 1b2e892
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} ); | ||
} ); |