don't get phantomjs metrics if we don't fetch phantomjs

This commit is contained in:
soulgalore 2014-09-01 13:19:21 +02:00
parent d833ba0aad
commit f8f507a09d
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ HTMLRenderer.prototype.renderPage = function (url, pageData, cb) {
renderData.gpsiData = pageData.gpsi;
renderData.browsertimeData = pageData.browsertime;
renderData.wptData = pageData.webpagetest;
renderData.phantomjsData = pageData.phantomjs.getStats();
if (pageData.phantomjs) {
renderData.phantomjsData = pageData.phantomjs.getStats();
}
renderData.config = config;
renderData.pageMeta = {