Skip to content

Commit

Permalink
Suppress error when fontlist contains non existing font
Browse files Browse the repository at this point in the history
  • Loading branch information
av01d committed Aug 6, 2021
1 parent 8267b29 commit 4691a2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/jquery.fontpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 4691a2d

Please sign in to comment.