diff --git a/templates/assets/js/custom.js b/templates/assets/js/custom.js index 04150b9e..84956cbf 100644 --- a/templates/assets/js/custom.js +++ b/templates/assets/js/custom.js @@ -142,7 +142,7 @@ document.addEventListener("DOMContentLoaded", () => { style: this.getAttribute("style") || '' }; let htmlStr = ` -
${this.innerHTML}
+
${this.innerHTML.trim().replace(/^(
)|(
)$/g, "")}
`; this.innerHTML = htmlStr; } @@ -161,7 +161,7 @@ document.addEventListener("DOMContentLoaded", () => { noIcon: this.getAttribute("noIcon") || '' }; let htmlStr = ` -
${this.innerHTML}
+
${this.innerHTML.trim().replace(/^(
)|(
)$/g, "")}
`; this.innerHTML = htmlStr; }