Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tosmolka committed Dec 19, 2022
1 parent 191cc00 commit 7de86a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/purify.js
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,9 @@ function createDOMPurify(window = getGlobal()) {
if (!doc || !doc.documentElement) {
doc = implementation.createDocument(NAMESPACE, 'template', null);
try {
doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
doc.documentElement.innerHTML = IS_EMPTY_INPUT
? emptyHTML
: dirtyPayload;
} catch (_) {
// Syntax error if dirtyPayload is invalid xml
}
Expand Down

0 comments on commit 7de86a0

Please sign in to comment.