We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2cc389 commit 4301e73Copy full SHA for 4301e73
src/PDFDocument.js
@@ -173,7 +173,7 @@ class PDFDocument extends PDFKit {
173
color = color || defaultColor;
174
175
if (typeof this._normalizeColor === 'function') {
176
- if (this._normalizeColor(color) === null) { // color is not valid
+ if (isString(color) && this._normalizeColor(color) === null) { // color is not valid
177
return defaultColor;
178
}
179
0 commit comments