1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

Bug objet non existant

This commit is contained in:
Vincent LAURENT 2021-10-30 10:47:26 +02:00
parent 9cb4bfdf3d
commit 476adfa494

View File

@ -115,7 +115,7 @@ loadingTask.promise.then(function(pdf) {
var input_selected = document.querySelector('input[name="svg_2_add"]:checked');
if(!input_selected.value.match(/^data:/) && input_selected.value != "text") {
if(input_selected && !input_selected.value.match(/^data:/) && input_selected.value != "text") {
input_selected = null;
}