Skip to content

Commit

Permalink
fix: return this
Browse files Browse the repository at this point in the history
  • Loading branch information
sj817 committed Sep 9, 2024
1 parent 45602e3 commit 88a474c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/puppeteer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class Puppeteer {
await this.launch()
}
console.info('[chrome] 初始化完成~')
return this
}

/**
Expand All @@ -112,6 +113,7 @@ export class Puppeteer {
const browser = new Render(this.index++, this.browserOptions)
await browser.init()
this.list.push(browser)
return this
}

/**
Expand Down

0 comments on commit 88a474c

Please sign in to comment.