commit ea813357f81f60d38992c73b1679656c5861e993
parent 07a012553e02663bf904442f06cfa1080735ad5f
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Thu, 10 Nov 2016 21:06:24 +0100
Wait till page is loaded. Change to 90& because loading is inconsistent
Diffstat:
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/intel_screenbot/screencap.js b/intel_screenbot/screencap.js
@@ -73,31 +73,31 @@ function afterCookieLogin(IntelURL, search) {
fs.remove('.iced_cookies');
}
}
- waitFor({
- debug: false, // optional
- interval: 0, // optional
- timeout: 1000, // optional
- check: function () {
- return page.evaluate(function() {
- if ($('#percent_text').textContent == "99") {
- return true;
- }else{
- return false;
- }
- });
- },
- success: function () {
- setTimeout(function() {
+ setTimeout(function() {
+ waitFor({
+ debug: false, // optional
+ interval: 0, // optional
+ timeout: 1000, // optional
+ check: function () {
+ return page.evaluate(function() {
+ if ($('#percent_text').textContent == "90") {
+ return true;
+ }else{
+ return false;
+ }
+ });
+ },
+ success: function () {
page.evaluate(function() {
document.querySelector("#filters_container").style.display= 'none';
});
hideDebris();
prepare('1920', '1080', search);
main();
- }, "5000");
- },
- error: function () {} // optional
- });
+ },
+ error: function () {} // optional
+ });
+ }, "5000");
});
}