Use document.body instead of 'body' as jQuery selector

Change-Id: Ia551b3050ed546de1f9db44dbd332a5b6c108a9f
This commit is contained in:
Fomafix
2019-12-16 11:05:57 +01:00
committed by jenkins-bot
parent 6d97927ad2
commit 61ebecff91
10 changed files with 18 additions and 18 deletions

View File

@@ -72,7 +72,7 @@
// MediaWiki specific overrides for jquery.webfonts
$.extend( $.fn.webfonts.defaults, {
repository: mediawikiFontRepository,
fontStack: $( 'body' ).css( 'font-family' ).split( /, /g ),
fontStack: $( document.body ).css( 'font-family' ).split( /, /g ),
/**
* Returns a suitable font from font repository based
* on the given language and html classes and user preference.
@@ -127,7 +127,7 @@
// This is important because webfonts behavior depends on the font-family
// property values set by stylesheets.
setTimeout( function () {
$( 'body' ).webfonts();
$( document.body ).webfonts();
}, 0 );
};