clients(lr): always apply category filter/ignoreStatusCode
This commit is contained in:
Родитель
baedd46f59
Коммит
e562d01579
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче