commit ce5507654d4202aa24da5de9f5b9c4185d3a573a
parent 7569e5d885026d1a661ffdb8bf016b32a041df2b
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Mon, 14 Nov 2016 17:13:39 +0100
Optimize searching
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/screencap_iitc.js b/screencap_iitc.js
@@ -106,7 +106,7 @@ function afterCookieLogin(IntelURL, search) {
e.keyCode = 13;
$("#search").trigger(e);
}, 2000);
- window.setTimeout(function() {$('.searchquery > :nth-child(2)').children()[0].click();}, 2000);
+ if ($('.searchquery').length > 0) {window.setTimeout(function() {$('.searchquery > :nth-child(2)').children()[0].click();}, 1000);}
}
}, search);
}