fix(WhatsappDirectLine): update sendFileToDevice to default isViewOnce to true and clean up header example
Some checks failed
GBCI / build (push) Failing after 9m6s
Some checks failed
GBCI / build (push) Failing after 9m6s
This commit is contained in:
parent
9d95e4f8c1
commit
3d5c30a3b0
1 changed files with 9 additions and 4 deletions
|
@ -1032,8 +1032,12 @@ export class KBService implements IGBKBService {
|
|||
'--no-default-browser-check'
|
||||
];
|
||||
|
||||
browser = await puppeteer.launch({
|
||||
headless: true,
|
||||
executablePath: process.env.CHROME_PATH ? process.env.CHROME_PATH : executablePath(),
|
||||
args
|
||||
});
|
||||
|
||||
browser = await puppeteer.launch({ headless: false, args: args });
|
||||
}
|
||||
const page = await browser.newPage();
|
||||
try {
|
||||
|
@ -1087,10 +1091,11 @@ export class KBService implements IGBKBService {
|
|||
'--no-default-browser-check'
|
||||
];
|
||||
|
||||
let browser = await puppeteer.launch({ headless: true,
|
||||
let browser = await puppeteer.launch({
|
||||
headless: true,
|
||||
executablePath: process.env.CHROME_PATH ? process.env.CHROME_PATH : executablePath(),
|
||||
|
||||
args });
|
||||
args
|
||||
});
|
||||
const page = await this.getFreshPage(browser, website);
|
||||
|
||||
let logo = await this.getLogoByPage(min, page);
|
||||
|
|
Loading…
Add table
Reference in a new issue