Skip to content

Commit

Permalink
fix: Additional safety around detecting functions in HTML output
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Jul 2, 2020
1 parent 78c6a5a commit a8b6ce1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/default_theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function isFunction(section) {
return (
section.kind === 'function' ||
(section.kind === 'typedef' &&
section.type &&
section.type.type === 'NameExpression' &&
section.type.name === 'Function')
);
Expand Down

0 comments on commit a8b6ce1

Please sign in to comment.