Преглед изворни кода

prefix properties with "font-"

Gildas пре 7 година
родитељ
комит
5fd0f62046
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -625,7 +625,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 						stylesheetContent += "@font-face{";
 						let propertiesContent = "";
 						Object.keys(details).forEach(detail => {
-							propertiesContent += detail + ":" + details[detail];
+							propertiesContent += "font-" + detail + ":" + details[detail];
 							propertiesContent += ";";
 						});
 						propertiesContent += "font-family:\"" + name + "\";";