Przeglądaj źródła

test the presence of fontFaceProxy

Gildas 7 lat temu
rodzic
commit
00ccd44777
1 zmienionych plików z 3 dodań i 1 usunięć
  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() {
 	function getFontsData() {
-		return fontFaceProxy.getFontsData();
+		if (typeof fontFaceProxy != "undefined") {
+			return fontFaceProxy.getFontsData();
+		}
 	}
 	}
 
 
 	function retrieveInputValues(doc, options) {
 	function retrieveInputValues(doc, options) {