clients(lr): always apply category filter/ignoreStatusCode
This commit is contained in:
Родитель
baedd46f59
Коммит
e562d01579
|
@ -96,12 +96,13 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
const page = await runLighthouseInLR.getPageFromConnection(connection);
|
||||
|
|
Загрузка…
Ссылка в новой задаче