Use document.body instead of 'body' as jQuery selector
Change-Id: Ia551b3050ed546de1f9db44dbd332a5b6c108a9f
This commit is contained in:
@@ -32,7 +32,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 ),
|
||||
fontSelector: function ( repository, language ) {
|
||||
var font = repository.defaultFont( language );
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
}
|
||||
} );
|
||||
|
||||
$( 'body' ).webfonts();
|
||||
$( document.body ).webfonts();
|
||||
} );
|
||||
|
||||
}() );
|
||||
|
||||
Reference in New Issue
Block a user