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 3c988e6b4625b456aa44191fa56a4ae68cf21749
parent 8367fe724320ae02722b38166cbcb0e03e610967
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Sat, 31 Dec 2016 21:41:29 +0100

Focus Element
Diffstat:
Mscreencap.js | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/screencap.js b/screencap.js @@ -261,7 +261,10 @@ function portalinfoScreen(){ }); height = page.evaluate(function() { return document.getElementById('sidebar').clientHeight; - }); + }); + page.evaluate(function() { + document.getElementById('sidebar').focus(); + }); page.viewportSize = { width: width, height: height }; setTimeout(function() {s(filepath)}, "1000"); }, @@ -294,6 +297,9 @@ function portalinfoScreen(){ height = page.evaluate(function() { return document.getElementById('sidebar').clientHeight; }); + page.evaluate(function() { + document.getElementById('sidebar').focus(); + }); page.viewportSize = { width: width, height: height }; setTimeout(function() {s(filepath)}, "1000"); }