diff --git a/package.json b/package.json index 394659f..8290c12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yz-yuki-plugin", - "version": "1.0.2-rc.5", + "version": "1.0.2-rc.6", "description": "优纪插件,yunzaijs 关于 微博推送、B站推送 等功能的拓展插件", "author": "snowtafir", "type": "module", diff --git a/src/utils/puppeteer.render.ts b/src/utils/puppeteer.render.ts index 4e56342..433c671 100644 --- a/src/utils/puppeteer.render.ts +++ b/src/utils/puppeteer.render.ts @@ -60,7 +60,7 @@ export class YukiPuppeteerRender extends Puppeteer { await page.setExtraHTTPHeaders(Options.header); } - await page.goto(`file://${htmlPath}`, { timeout: Options?.timeout ?? 120000, waitUntil: ["load", "networkidle2"] }); + await page.goto(`file://${htmlPath}`, { timeout: Options?.timeout ?? 120000, waitUntil: ["load", "networkidle0"] }); const body = await page.$(Options?.tab ?? 'body') if (!body) return false