diff2html/src/ui/js
Eric Cornelissen 3a480e4ab0 perf: check hljs is not null only once
Update the `highlightCode` method of `Diff2HtmlUI` to check if the hljs
reference is null only once (at the start). This address the "HACK"
comments by using a locally scoped variable for hljs. This way,
TypeScript is able to deduce that, after the initial null-check, hljs is
in fact not null.
2022-11-02 22:43:23 +01:00
..
diff2html-ui-base.ts perf: check hljs is not null only once 2022-11-02 22:43:23 +01:00
diff2html-ui-slim.ts clean: Improve diff2html-ui APIs for standalone usage 2020-01-08 22:40:46 +00:00
diff2html-ui.ts clean: Improve diff2html-ui APIs for standalone usage 2020-01-08 22:40:46 +00:00
highlight.js-helpers.ts fix: Add language mappings for highlight.js 2021-09-03 23:26:31 +01:00
highlight.js-slim.ts bump: Update dependencies 2021-07-23 21:50:00 +01:00