- Fix WA.
Some checks failed
GBCI / build (push) Failing after 8m42s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-09-25 14:11:08 -03:00
parent 10529870bb
commit d6b6d4c09f

View file

@ -1209,13 +1209,12 @@ export class KBService implements IGBKBService {
await min.core['setConfig'](min, 'Color2', colors[1].hex()); await min.core['setConfig'](min, 'Color2', colors[1].hex());
} }
// Disables images in crawling. // Disables images in crawling.
await page.route('**/*', route => {
await page.setRequestInterception(true); const type = route.request().resourceType();
page.on('request', req => { if (type === 'image' || type === 'stylesheet') {
if (req.resourceType() === 'image' || req.resourceType() === 'stylesheet') { route.abort();
req.abort();
} else { } else {
req.continue(); route.continue();
} }
}); });