From 4691a2dc236312fdac86fd59ca4b9d8e71052be1 Mon Sep 17 00:00:00 2001 From: Arjan Haverkamp Date: Fri, 6 Aug 2021 11:36:14 +0200 Subject: [PATCH] Suppress error when fontlist contains non existing font --- dist/jquery.fontpicker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/jquery.fontpicker.js b/dist/jquery.fontpicker.js index 23c3645..099f80d 100644 --- a/dist/jquery.fontpicker.js +++ b/dist/jquery.fontpicker.js @@ -5917,6 +5917,7 @@ function append(fontType, fontFamily) { var font = self.allFonts[fontType][fontFamily], small = ''; + if (!font) { return; } // Continue if font does not exist if (font.category || font.variants) { var items = [];