Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomap committed Aug 10, 2021
1 parent 64964d3 commit dbfe57c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ module.exports = function(data, options) {
let sanitizer = function(html) { return html; };

if (dompurify) {
if (createDOMPurify == undefined && JSDOM == undefined) {
if (createDOMPurify === undefined && JSDOM === undefined) {
createDOMPurify = require('dompurify');
JSDOM = require('jsdom').JSDOM;
}
Expand Down

0 comments on commit dbfe57c

Please sign in to comment.