From f97461dbc9a25f5b905d48e5d499db568a91310a Mon Sep 17 00:00:00 2001 From: "Dr. Hans-Peter Stoerr" Date: Thu, 5 Dec 2024 09:39:06 +0100 Subject: [PATCH] bugfix compare tool --- .../components/tool/comparetool/comparetool.html | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/aem/ui.apps/src/main/content/jcr_root/apps/composum-ai/components/tool/comparetool/comparetool.html b/aem/ui.apps/src/main/content/jcr_root/apps/composum-ai/components/tool/comparetool/comparetool.html index 5df3d566..26a4ab76 100644 --- a/aem/ui.apps/src/main/content/jcr_root/apps/composum-ai/components/tool/comparetool/comparetool.html +++ b/aem/ui.apps/src/main/content/jcr_root/apps/composum-ai/components/tool/comparetool/comparetool.html @@ -84,22 +84,12 @@ // Event listeners for URL input fields leftField.addEventListener('change', function () { leftLoaded = false; - try { - const url = new URL(this.value); - leftIframe.src = DOMPurify.sanitize(url.href); - } catch (e) { - console.error('Invalid URL:', this.value); - } + leftIframe.src = DOMPurify.sanitize(url.href); }); rightField.addEventListener('change', function () { rightLoaded = false; - try { - const url = new URL(this.value); - rightIframe.src = DOMPurify.sanitize(url.href); - } catch (e) { - console.error('Invalid URL:', this.value); - } + rightIframe.src = DOMPurify.sanitize(this.value); }); // Function to parse URL parameters