Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Oct 17, 2013
2 parents 182e66f + fd5389b commit efa706e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/resources/screenshot-capture/capture.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ PageRenderer.prototype = {
setTimeout(function () {
if (url == self.url) {
self.webpage.evaluate(function () {
window.piwik.ajaxRequestFinished();
if (window.piwik
&& window.piwik.ajaxRequestFinished
) {
window.piwik.ajaxRequestFinished();
} else {
console.log("__AJAX_DONE__");
}
});
}
}, 5000);
Expand Down

0 comments on commit efa706e

Please sign in to comment.