clients(lr): always apply category filter/ignoreStatusCode

This commit is contained in:
Connor Clark 2024-02-27 17:40:29 -08:00
Родитель baedd46f59
Коммит e562d01579
1 изменённых файлов: 6 добавлений и 5 удалений

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

@ -96,11 +96,12 @@ async function runLighthouseInLR(connection, url, flags, lrOpts) {
config = configOverride;
} else {
config = lrDevice === 'desktop' ? LR_PRESETS.desktop : LR_PRESETS.mobile;
config.settings = config.settings || {};
config.settings.ignoreStatusCode = ignoreStatusCode;
if (categoryIDs) {
config.settings.onlyCategories = categoryIDs;
}
}
config.settings = config.settings || {};
config.settings.ignoreStatusCode = ignoreStatusCode;
if (categoryIDs) {
config.settings.onlyCategories = categoryIDs;
}
try {