From 99827879b00b388cd621d1d98453b093a4b15f0d Mon Sep 17 00:00:00 2001 From: Ethan Kaplan Date: Mon, 17 Jun 2024 07:50:03 -0700 Subject: [PATCH] MAT-7204 add support id to the event --- src/util/wafIntercept.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/wafIntercept.ts b/src/util/wafIntercept.ts index 40a3e98..18ef7c6 100644 --- a/src/util/wafIntercept.ts +++ b/src/util/wafIntercept.ts @@ -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.