Fix jquery deprecation
Applying PR#52 (https://github.com/wikimedia/jquery.webfonts/pull/52) https://api.jquery.com/jQuery.trim/ Bug: T280944 Change-Id: I7cf706b905a27079a06737b252805e199939d8df
This commit is contained in:
@@ -225,7 +225,7 @@
|
||||
} else {
|
||||
fontFamily = fontFamilyStyle.split( ',' )[0];
|
||||
// Remove the ' and " characters if any.
|
||||
fontFamily = $.trim( fontFamily.replace( /["']/g, '' ) );
|
||||
fontFamily = fontFamily.replace( /["']/g, '' ).trim();
|
||||
addToFontQueue( fontFamily );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user