Skip to content

Commit 700d24f

Browse files
committed
prettier
1 parent 6ec23b8 commit 700d24f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

client/public/sandbox_proxy.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@
3030
const ALLOWED_ORIGINS = [];
3131

3232
function sanitizeHtml(html) {
33-
if (window.DOMPurify && typeof window.DOMPurify.sanitize === "function") {
34-
return window.DOMPurify.sanitize(html, { RETURN_TRUSTED_TYPE: false });
33+
if (
34+
window.DOMPurify &&
35+
typeof window.DOMPurify.sanitize === "function"
36+
) {
37+
return window.DOMPurify.sanitize(html, {
38+
RETURN_TRUSTED_TYPE: false,
39+
});
3540
}
3641

3742
// If DOMPurify is not available, do not attempt to sanitize manually.

0 commit comments

Comments
 (0)