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;