瀏覽代碼

don't remove existing fonts from the cache

Gildas 7 年之前
父節點
當前提交
7a7ec09087
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      lib/single-file/font-face-proxy.js

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

@@ -28,7 +28,6 @@ this.fontFaceProxy = this.fontFaceProxy || (() => {
 			featureSettings: "font-feature-settings"
 		};
 
-		Array.from(document.fonts).forEach(fontFace => document.fonts.delete(fontFace));
 		const FontFace = window.FontFace;
 		window.__defineGetter__("FontFace", () => new Proxy(FontFace, {
 			construct(FontFace, argumentsList) {