Prevent exception when calling element
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user