Optionally exclude elements from applying webfonts
* Updates jquery.webfonts from upstream * Introduces wgULSNoWebfontsSelectors configuration variable. It takes an array of jquery selector to which webfonts will not be applied if defined. Change-Id: I0dc263f84620af4077f52e18eeb0f986ff0f13b9
This commit is contained in:
@@ -190,6 +190,10 @@
|
||||
var fontFamilyStyle, fontFamily,
|
||||
$element = $( element );
|
||||
|
||||
if ( $element.is( webfonts.options.exclude ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Note: it depends on the browser whether this returns font names
|
||||
// which don't exist. In Chrome it does, while in Opera it doesn't.
|
||||
fontFamilyStyle = $element.css( 'fontFamily' );
|
||||
|
||||
Reference in New Issue
Block a user