From d941164891df4586b48ffd8730833719501f412e Mon Sep 17 00:00:00 2001 From: Edward Peterson Date: Wed, 30 Aug 2023 14:49:42 -0400 Subject: [PATCH] Fixed narrow images hanging in generic bootstrap extractor --- processors/generics/generic-bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processors/generics/generic-bootstrap.js b/processors/generics/generic-bootstrap.js index 608cec7..d0e497e 100644 --- a/processors/generics/generic-bootstrap.js +++ b/processors/generics/generic-bootstrap.js @@ -19,7 +19,7 @@ module.exports = function (processorConfig) { // Find the active image, surround it in an anchor tag, then click it. async function downloadImage(id) { - const imgWrap = document.elementFromPoint(300, 300); + const imgWrap = document.elementFromPoint(window.innerWidth / 2, 300); const children = imgWrap.querySelectorAll('.pswp__img'); const img = children[children.length - 1]; // debugger;