Apply webfonts to the IME selector too
It get added to DOM after DOM is ready, and does not inherit styles (by design) Change-Id: I45a982b5c1c2a39718f38e77a33b79f89e460474
This commit is contained in:
committed by
Nikerabbit
parent
2fdf4bffb3
commit
e4cefe06fd
@@ -52,7 +52,7 @@
|
||||
|
||||
mw.webfonts.setup = function () {
|
||||
// Initialize webfonts
|
||||
$( 'body' ).webfonts( {
|
||||
$.fn.webfonts.defaults = $.extend( $.fn.webfonts.defaults, {
|
||||
fontSelector: function ( repository, language ) {
|
||||
var font;
|
||||
|
||||
@@ -78,6 +78,7 @@
|
||||
return $.fn.webfonts.defaults.exclude;
|
||||
}() )
|
||||
} );
|
||||
$( 'body' ).webfonts();
|
||||
};
|
||||
|
||||
$( document ).ready( function () {
|
||||
|
||||
Reference in New Issue
Block a user