Просмотр исходного кода

test the presence of fontFaceProxy

Gildas 7 лет назад
Родитель
Сommit
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) {