thegregorator / ttembed-js

Node module to remove embedding limitations from TrueType fonts
The Unlicense
12 stars 6 forks source link

Errors in failure handling (ReferenceError: filename is not defined) #7

Open aCandidMind opened 7 years ago

aCandidMind commented 7 years ago

https://github.com/thegregorator/ttembed-js/blob/e0542404e5dc4e12a7cfc1b3768143d91578e5c8/ttembed.js#L42

https://github.com/thegregorator/ttembed-js/blob/e0542404e5dc4e12a7cfc1b3768143d91578e5c8/ttembed.js#L93

I guess these should be config.filename instead of just filename.