Pass an actual array to fontStack option to webfonts

Change-Id: Id836d7ce82e22e7d0679a5c615be014b1fce08b3
This commit is contained in:
Santhosh Thottingal
2013-08-23 18:28:01 +05:30
parent 39440baa24
commit c793a9bd31

View File

@@ -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();