Skip to content

Commit

Permalink
MAT-7204 add support id to the event
Browse files Browse the repository at this point in the history
  • Loading branch information
ethankaplan committed Jun 17, 2024
1 parent 7906e26 commit 9982787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/wafIntercept.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const wafIntercept = () =>
const purifiedBody = DOMPurify.sanitize(body, { ALLOWED_TAGS: [] });

const wafEvent = new CustomEvent("wafReject", {
detail: { message: purifiedBody },
detail: { message: purifiedBody, supportId: supportID },
});
document.dispatchEvent(wafEvent);
throw new Error(purifiedBody); // no tags allowed, removes all HTML tags.
Expand Down

0 comments on commit 9982787

Please sign in to comment.