|
|
@@ -55,9 +55,7 @@ this.fontFaceProxy = this.fontFaceProxy || (() => {
|
|
|
detail.src = argumentsList[1];
|
|
|
const descriptors = argumentsList[2];
|
|
|
if (descriptors) {
|
|
|
- Object.keys(descriptors).forEach(descriptor => {
|
|
|
- detail[FONT_STYLE_PROPERTIES[descriptor]] = descriptors[descriptor];
|
|
|
- });
|
|
|
+ Object.keys(descriptors).forEach(descriptor => detail[FONT_STYLE_PROPERTIES[descriptor]] = descriptors[descriptor]);
|
|
|
}
|
|
|
dispatchEvent(new CustomEvent("single-file-font-face", { detail }));
|
|
|
return new FontFace(...argumentsList);
|