Skip to content

Commit

Permalink
Merge pull request #42 from soulkirito/main
Browse files Browse the repository at this point in the history
Bug: browser.pages()
  • Loading branch information
kkoooqq authored Jan 12, 2022
2 parents 10381b5 + e10a19e commit 02eac96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/PptrToolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ export class PptrToolkit {
const start = new Date().getTime()

while (new Date().getTime() - start < timeout) {
const pages = await browser.pages()
const pages = await Promise.all(
browser.targets()
.filter((target) => target.type() === 'page')
.map((target) => target.page())
);
const arr = []

for (const p of pages) {
Expand Down

0 comments on commit 02eac96

Please sign in to comment.