diff --git a/src/web/public/js/web-ui-helpers.js b/src/web/public/js/web-ui-helpers.js index d371238..c2eef50 100644 --- a/src/web/public/js/web-ui-helpers.js +++ b/src/web/public/js/web-ui-helpers.js @@ -80,6 +80,10 @@ } function initializeUrlValidation() { + if (typeof document === 'undefined') { + return; + } + document.addEventListener('input', function (event) { if (isUrlInput(event.target)) { updateUrlValidation(event.target, true);