Skip to content

Commit

Permalink
emitting a warning if a font can’t be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Jul 21, 2017
1 parent b39ecb6 commit 72ed711
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framer/Utils.coffee
Expand Up @@ -560,6 +560,7 @@ Utils.loadWebFontConfig = (config) ->
f()

config.fontinactive = (font) ->
console.warn("Tried to load unavailable font: '#{font}'")
_isFontLoadedResults[font] = false
customFontinactive?(font)
if fonts.length is 1
Expand Down

0 comments on commit 72ed711

Please sign in to comment.