Skip to content

Commit

Permalink
feat: add PuppeteerSession.Base.url() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Battis committed Dec 31, 2024
1 parent 7af327f commit 69ff66d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/datadirect-puppeteer/src/PuppeteerSession/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export class Base extends EventEmitter {
return await new Base(page).ready();
}

public url() {
return new URL(this.page.url());
}

public async fetch(
input: URL | string,
init?: RequestInit
Expand Down

0 comments on commit 69ff66d

Please sign in to comment.