Release 5.12.1 (#1474)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Font Awesome Pro 5.12.0 by @fontawesome - https://fontawesome.com
|
||||
* Font Awesome Pro 5.12.1 by @fontawesome - https://fontawesome.com
|
||||
* License - https://fontawesome.com/license (Commercial License)
|
||||
*/
|
||||
(function () {
|
||||
@@ -1096,7 +1096,7 @@
|
||||
mark: noop$1,
|
||||
measure: noop$1
|
||||
};
|
||||
var preamble = "FA \"5.12.0\"";
|
||||
var preamble = "FA \"5.12.1\"";
|
||||
|
||||
var begin = function begin(name) {
|
||||
p.mark("".concat(preamble, " ").concat(name, " begins"));
|
||||
@@ -1990,6 +1990,7 @@
|
||||
var styles = WINDOW.getComputedStyle(node, position);
|
||||
var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
|
||||
var fontWeight = styles.getPropertyValue('font-weight');
|
||||
var content = styles.getPropertyValue('content');
|
||||
|
||||
if (alreadyProcessedPseudoElement && !fontFamily) {
|
||||
// If we've already processed it but the current computed style does not result in a font-family,
|
||||
@@ -1997,8 +1998,7 @@
|
||||
// removed. So we now should delete the icon.
|
||||
node.removeChild(alreadyProcessedPseudoElement);
|
||||
return resolve();
|
||||
} else if (fontFamily) {
|
||||
var content = styles.getPropertyValue('content');
|
||||
} else if (fontFamily && content !== 'none' && content !== '') {
|
||||
var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
|
||||
var hexValue = toHex(content.length === 3 ? content.substr(1, 1) : content);
|
||||
var iconName = byUnicode(prefix, hexValue);
|
||||
|
||||
Reference in New Issue
Block a user