highlighter: Fix double-escaping of popup notifications

Bug: T323351
Change-Id: Iaa69ccd944114f2a7ff88e01b6e58d70d38cac89
This commit is contained in:
Bartosz Dziewoński 2022-11-18 14:56:36 +01:00
parent 06aa46df34
commit 86ffa41af7

View file

@ -177,7 +177,7 @@ function highlightTargetComment( threadItemSet, noScroll ) {
if ( location.hash.match( /^#c-/ ) && !targetElement ) {
missingTargetNotifPromise = mw.loader.using( 'mediawiki.notification' ).then( function () {
return mw.notification.notify(
mw.message( 'discussiontools-target-comment-missing' ).parse(),
mw.message( 'discussiontools-target-comment-missing' ).text(),
{ type: 'warn', autoHide: false }
);
} );
@ -334,7 +334,7 @@ function highlightNewComments( threadItemSet, noScroll, newCommentIds, newCommen
highlightsRequestedSingle ?
'discussiontools-target-comment-missing' :
'discussiontools-target-comments-missing'
).parse(),
).text(),
{ type: 'warn', autoHide: false }
);
} );