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 9cb83f0c4e9b126d56b8cc7e3d128c14a1dbf392
parent 46c65df06c68f6c646b6abcb98f78c163fd95c11
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Sat, 31 Dec 2016 21:28:43 +0100

Fix Screenshot function
Diffstat:
Mscreencap.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/screencap.js b/screencap.js @@ -219,7 +219,7 @@ function map(search){ }, "1000"); } -function portalinfoScreen(file){ +function portalinfoScreen(){ setTimeout(function() { page.evaluate(function() { (function($) { @@ -250,7 +250,7 @@ function portalinfoScreen(file){ return document.getElementById('sidebar').clientHeight; }); page.viewportSize = { width: width, height: height }; - setTimeout(function() {s(file)}, "1000"); + setTimeout(function() {s(filepath)}, "1000"); }, "1000"); } @@ -280,7 +280,7 @@ function afterLogin(url, search, mode) { if(screenshotfunction == "map"){ map(search); }else if (screenshotfunction == "portalinfoScreen"){ - portalinfoScreen(file); + portalinfoScreen(); }else if (screenshotfunction == "portalinfoText"){ portalinfoText(); }