Skip to content

Commit f403907

Browse files
files.forEach bug - Fixes #16
1 parent 98f4704 commit f403907

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/process-fonts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { FontCollection } from '../lib/font-collection'
22

33
function processFonts (files: Array<any>) {
44
if (!files) return
5+
files = [].concat(files)
56
files.forEach(file => {
67
new FontCollection(file).export()
78
})

0 commit comments

Comments
 (0)