diff --git a/feedback-widget.js b/feedback-widget.js index 28f35cf..db371cd 100644 --- a/feedback-widget.js +++ b/feedback-widget.js @@ -244,6 +244,15 @@ class NJFeedbackWidget extends window.HTMLElement { const contactLink = this.hasAttribute("contact-link") ? this.getAttribute("contact-link") : "https://www.nj.gov/nj/feedback.html"; + + let showCommentDisclaimer = true; + if ( + this.hasAttribute("show-comment-disclaimer") && + this.getAttribute("show-comment-disclaimer") === "false" + ) { + showCommentDisclaimer = false; + } + const html = /*html*/ `
@@ -264,14 +273,18 @@ class NJFeedbackWidget extends window.HTMLElement { -

- ${content.commentPromptDisclaimer}${content.commentPromptDisclaimerLink}. -

+ ${ + showCommentDisclaimer + ? `

+ ${content.commentPromptDisclaimer}${content.commentPromptDisclaimerLink}. +

` + : "" + }