Download all: Fix file name suffix

This commit is contained in:
JeLuF 2023-02-19 12:44:10 +01:00
parent e7a2dfa57f
commit 31a1c4b2b2

View File

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