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 5504ea1f09413b45f23f7b7a75c376d467a386b7
parent 3e1913772722f9b61ed700dfbdecd82fc5f78e00
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Mon, 13 Feb 2017 20:59:09 +0100

Need to wait until the Info has loaded
Diffstat:
Mscreencap.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/screencap.js b/screencap.js @@ -288,7 +288,7 @@ function portalinfoText(){ timeout: 240000, check: function () { return page.evaluate(function() { - if (document.querySelector('.map').textContent.indexOf('done') != -1) { + if ((document.querySelector('.map').textContent.indexOf('done') != -1) || (document.getElementById("resodetails").rows[0])) { return true; }else{ console.log('generateFakeOutput')