commit 8367fe724320ae02722b38166cbcb0e03e610967
parent 15d41289b448040616a6f6c52960f94000675c60
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Sat, 31 Dec 2016 21:37:05 +0100
Move function to correct position
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/screencap.js b/screencap.js
@@ -221,7 +221,6 @@ function map(search){
function portalinfoScreen(){
setTimeout(function() {
- page.viewportSize = { width: width, height: height };
waitFor({
timeout: 240000,
check: function () {
@@ -262,8 +261,9 @@ function portalinfoScreen(){
});
height = page.evaluate(function() {
return document.getElementById('sidebar').clientHeight;
- });
- setTimeout(function() {s(filepath)}, "1000");
+ });
+ page.viewportSize = { width: width, height: height };
+ setTimeout(function() {s(filepath)}, "1000");
},
error: function () {
page.evaluate(function() {
@@ -294,6 +294,7 @@ function portalinfoScreen(){
height = page.evaluate(function() {
return document.getElementById('sidebar').clientHeight;
});
+ page.viewportSize = { width: width, height: height };
setTimeout(function() {s(filepath)}, "1000");
}
});