Explorar o código

test the presence of fontFaceProxy

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
00ccd44777
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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) {