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

Sauvegarde avant la séléction du dernier élément

This commit is contained in:
Vincent LAURENT 2021-10-03 09:46:35 +02:00
parent 2ac5e92937
commit 9edfd9e840

View File

@ -135,8 +135,8 @@ loadingTask.promise.then(function(pdf) {
} }
svgCollections.push(svgItem); svgCollections.push(svgItem);
displaysSVG(); displaysSVG();
document.querySelector('#svg_list label:last-child').click();
localStorage.setItem('svgCollections', JSON.stringify(svgCollections)); localStorage.setItem('svgCollections', JSON.stringify(svgCollections));
document.querySelector('#svg_list label:last-child').click();
}); });
function dataURLtoBlob(dataurl) { function dataURLtoBlob(dataurl) {