Don't filter artifacts out of LHR (#2135)

* Don't filter artifacts out of LHR

* Update lighthouse-background.js
This commit is contained in:
Paul Irish 2017-05-03 14:53:35 -07:00 коммит произвёл GitHub
Родитель 9a9a6b9c21
Коммит 17091ca2d5
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -114,7 +114,6 @@ window.runLighthouseForConnection = function(connection, url, options, categoryI
.then(result => {
lighthouseIsRunning = false;
updateBadgeUI();
filterOutArtifacts(result);
return result;
})
.catch(err => {
@ -138,6 +137,7 @@ window.runLighthouseInExtension = function(options, categoryIDs) {
return connection.getCurrentTabURL()
.then(url => window.runLighthouseForConnection(connection, url, options, categoryIDs))
.then(results => {
filterOutArtifacts(results);
// return enableOtherChromeExtensions(true).then(_ => {
const blobURL = window.createReportPageAsBlob(results, 'extension');
chrome.tabs.create({url: blobURL});
@ -170,7 +170,6 @@ window.runLighthouseInWorker = function(port, url, options, categoryIDs) {
*/
window.createReportPageAsBlob = function(results, reportContext) {
performance.mark('report-start');
const reportGenerator = new ReportGenerator();
let html;
try {