This commit is contained in:
parent
023b83aacf
commit
38f2ead453
1 changed files with 5 additions and 4 deletions
|
|
@ -1203,10 +1203,11 @@ export class KBService implements IGBKBService {
|
||||||
page = await this.getFreshPage(browser, website);
|
page = await this.getFreshPage(browser, website);
|
||||||
|
|
||||||
await page.screenshot({ path: 'screenshot.png' });
|
await page.screenshot({ path: 'screenshot.png' });
|
||||||
|
if (getColors) {
|
||||||
const colors = await getColors('screenshot.png');
|
const colors = await getColors('screenshot.png');
|
||||||
await min.core['setConfig'](min, 'Color1', colors[0].hex());
|
await min.core['setConfig'](min, 'Color1', colors[0].hex());
|
||||||
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.setRequestInterception(true);
|
await page.setRequestInterception(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue