Pass an actual array to fontStack option to webfonts
Change-Id: Id836d7ce82e22e7d0679a5c615be014b1fce08b3
This commit is contained in:
@@ -87,7 +87,7 @@
|
|||||||
// MediaWiki specific overrides for jquery.webfonts
|
// MediaWiki specific overrides for jquery.webfonts
|
||||||
$.extend( $.fn.webfonts.defaults, {
|
$.extend( $.fn.webfonts.defaults, {
|
||||||
repository: mediawikiFontRepository,
|
repository: mediawikiFontRepository,
|
||||||
fontStack: new Array( $( 'body' ).css( 'font-family' ) )
|
fontStack: $( 'body' ).css( 'font-family' ).split( /, /g )
|
||||||
} );
|
} );
|
||||||
|
|
||||||
mw.webfonts.preferences.load();
|
mw.webfonts.preferences.load();
|
||||||
|
|||||||
Reference in New Issue
Block a user