Gildas 7 лет назад
Родитель
Сommit
d5be42c50a
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      lib/single-file/font-face-proxy.js

+ 1 - 0
lib/single-file/font-face-proxy.js

@@ -9,6 +9,7 @@ this.fontFaceProxy = this.fontFaceProxy || (() => {
 		const scriptElement = document.createElement("script");
 		scriptElement.textContent = `(${hook.toString()})()`;
 		document.documentElement.appendChild(scriptElement);
+		scriptElement.remove();
 		addEventListener("single-file-font-face", event => fontFaces.push(event.detail));
 	}