|
@@ -82,7 +82,7 @@ async function createHTMLOfURL (url, config = {}) {
|
|
|
logger.log.debug('等待生成', new Date().toLocaleString())
|
|
|
|
|
|
const html = await page.evaluate(() => {
|
|
|
- const element = document.querySelector('.analysis-report');
|
|
|
+ const element = document.querySelector('.analysis-report') || document.querySelector('body');
|
|
|
return element.outerHTML;
|
|
|
});
|
|
|
|