فهرست منبع

test the presence of fontFaceProxy

Gildas 7 سال پیش
والد
کامیت
00ccd44777
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      lib/single-file/doc-helper.js

+ 3 - 1
lib/single-file/doc-helper.js

@@ -181,7 +181,9 @@ this.docHelper = this.docHelper || (() => {
 	}
 
 	function getFontsData() {
-		return fontFaceProxy.getFontsData();
+		if (typeof fontFaceProxy != "undefined") {
+			return fontFaceProxy.getFontsData();
+		}
 	}
 
 	function retrieveInputValues(doc, options) {