From c793a9bd31847f030d6e27bb64d73d02bf72de93 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Fri, 23 Aug 2013 18:28:01 +0530 Subject: [PATCH] Pass an actual array to fontStack option to webfonts Change-Id: Id836d7ce82e22e7d0679a5c615be014b1fce08b3 --- resources/js/ext.uls.webfonts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/ext.uls.webfonts.js b/resources/js/ext.uls.webfonts.js index 0c524a78..c0922bc7 100644 --- a/resources/js/ext.uls.webfonts.js +++ b/resources/js/ext.uls.webfonts.js @@ -87,7 +87,7 @@ // MediaWiki specific overrides for jquery.webfonts $.extend( $.fn.webfonts.defaults, { repository: mediawikiFontRepository, - fontStack: new Array( $( 'body' ).css( 'font-family' ) ) + fontStack: $( 'body' ).css( 'font-family' ).split( /, /g ) } ); mw.webfonts.preferences.load();