intel-screenbot

An Ingress Intel Map Bot for Hangoutsbot
git clone git://archive.git.mtrnord.blog/MTRNord/intel-screenbot.git
Log | Files | Refs | README | LICENSE

commit 716dc486d19344858eb6e918c2b5e0940d0c3c08
parent f3252371477c37e735cbf59c680fa263171f1ca4
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Sat, 31 Dec 2016 22:33:08 +0100

Try fixing height
Diffstat:
Mscreencap.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/screencap.js b/screencap.js @@ -235,27 +235,27 @@ function portalinfoScreen(){ }, success: function () { var clipRect = page.evaluate(function(){ - return document.querySelector('#portaldetails').getBoundingClientRect(); + return document.querySelector('#scrollwrapper').getBoundingClientRect(); }); page.clipRect = { top: clipRect.top, left: clipRect.left, width: clipRect.width, - height: clipRect.bottom - clipRect.top + height: clipRect.height } setTimeout(function() {s(filepath)}, "1000"); }, error: function () { var clipRect = page.evaluate(function(){ - return document.querySelector('#portaldetails').getBoundingClientRect(); + return document.querySelector('#scrollwrapper').getBoundingClientRect(); }); page.clipRect = { top: clipRect.top, left: clipRect.left, width: clipRect.width, - height: clipRect.bottom - clipRect.top + height: clipRect.height } setTimeout(function() {s(filepath)}, "1000"); }