Prevent exception when calling element

This commit is contained in:
2026-04-15 18:43:41 +02:00
parent a1646d67cf
commit 977f25d997

View File

@@ -93,7 +93,7 @@
(format
(string-append
"{ let el = document.getElementById('~a');\n"
" let a = el.getAttribute('type');\n"
" let a = (el === null) ? null : el.getAttribute('type');\n"
" if (a === null) {\n"
" return false;\n"
" } else {\n"