Commit 97678c7
millenaarg
Update cell.js (#1)
When invoking the jsPDF.table() method a "TypeError: config.css is undefined" is thrown when there is no font-size property on the css property of the config object that is passed. In this case execution halts.
Added check for config.css and config.css['font-size']. Used a negative typeof check for "undefined" instead of a positive one for "number" to respect loose typing.1 parent 5f00080 commit 97678c7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
0 commit comments