Skip to content

Commit

Permalink
chore: fix more jsr issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lino-levan committed Feb 12, 2024
1 parent ab2ee90 commit d4850ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: denoland/setup-deno@v1

- name: Vendor packages
run: deno vendor **/*.ts
run: deno vendor **/*.ts

- name: Publish package
run: deno publish
2 changes: 1 addition & 1 deletion src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export class Page extends EventTarget {
/**
* The current URL of the page
*/
get url(): string {
get url(): string | undefined {
return this.#url;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/stealth_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Deno.test("Testing stealth", async () => {
const page = await browser.newPage("http://example.com");

// passing arguments to evaluate
const userAgent: string = await page.evaluate(() => {
const userAgent = await page.evaluate(() => {
return navigator.userAgent;
});
}) as string;
assert(!userAgent.toLowerCase().includes("headless"));

// Close browser
Expand Down

0 comments on commit d4850ac

Please sign in to comment.