From 88a474cf5a7ee697ba4e5b9ba2aa8a8519d4b289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E7=91=BE?= Date: Tue, 10 Sep 2024 02:12:54 +0800 Subject: [PATCH] fix: return this --- src/puppeteer/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/puppeteer/index.ts b/src/puppeteer/index.ts index e33d0b1..2a5222b 100644 --- a/src/puppeteer/index.ts +++ b/src/puppeteer/index.ts @@ -103,6 +103,7 @@ export class Puppeteer { await this.launch() } console.info('[chrome] 初始化完成~') + return this } /** @@ -112,6 +113,7 @@ export class Puppeteer { const browser = new Render(this.index++, this.browserOptions) await browser.init() this.list.push(browser) + return this } /**