Merge pull request #908 from JeLuF/png

Download all: Fix file name suffix
This commit is contained in:
cmdr2 2023-02-20 18:57:24 +05:30 committed by GitHub
commit fb67ef2df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1167,12 +1167,10 @@ saveAllImagesBtn.addEventListener('click', (e) => {
let req = htmlTaskMap.get(container)
container.querySelectorAll(".imgContainer img").forEach(img => {
if (img.closest('.imgItem').style.display === 'none') {
// console.log('skipping hidden image', img)
return
}
onDownloadImageClick(req, img)
// console.log(req)
onDownloadImageClick(req.reqBody, img)
})
})
})