Exclude does not apply if the editfont preference is default
'editfont' == 'default' means 'Browser default' font setting. We can apply webfonts there. Change-Id: Iff522e0016d8284dc785580e6eb3dd2967c58289
This commit is contained in:
@@ -70,12 +70,11 @@
|
|||||||
return font;
|
return font;
|
||||||
},
|
},
|
||||||
exclude: ( function () {
|
exclude: ( function () {
|
||||||
if ( mw.user.options.get( 'editfont' ) ) {
|
if ( mw.user.options.get( 'editfont' ) !== 'default' ) {
|
||||||
// Exclude textboxes from webfonts if user has edit area font option
|
// Exclude textboxes from webfonts if user has edit area font option
|
||||||
// set using 'Preferences' page
|
// set using 'Preferences' page
|
||||||
return 'textarea';
|
return 'textarea';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $.fn.webfonts.defaults.exclude;
|
return $.fn.webfonts.defaults.exclude;
|
||||||
}() )
|
}() )
|
||||||
} );
|
} );
|
||||||
|
|||||||
Reference in New Issue
Block a user