diff --git a/buildtools/check-example.js b/buildtools/check-example.js index 03a1e1de1d52..defa431ec2cc 100644 --- a/buildtools/check-example.js +++ b/buildtools/check-example.js @@ -189,14 +189,18 @@ function loaded(page, browser) { request.headers().origin = 'http://localhost:3001'; } console.log(`Request: ${url}`); - request.continue({ - url, - headers: { - // Don't be intranet - 'Forwarded': 'for=8.8.8.8;proto=https', - 'Cache-Control': 'no-cache', - }, - }); + if (url.startsWith('http://localhost:') && url.endsWith('/theme/favicon.ico')) { + request.respond(OSMImage); + } else { + request.continue({ + url, + headers: { + // Don't be intranet + 'Forwarded': 'for=8.8.8.8;proto=https', + 'Cache-Control': 'no-cache', + }, + }); + } } } else if ( url.includes('tile.openstreetmap.org') ||