Explorar el Código

test the presence of fontFaceProxy

Gildas hace 7 años
padre
commit
00ccd44777
Se han modificado 1 ficheros con 3 adiciones y 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) {