Skip to content

Commit

Permalink
trying to fix Vitest puppeteer on Node lts/-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aquabet committed Dec 19, 2024
1 parent 2274ea3 commit 612d9cd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/routes/ups/track.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Route } from '@/types';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { config } from '@/config';
import puppeteer from '@/utils/puppeteer';

export const route: Route = {
Expand Down Expand Up @@ -35,12 +34,6 @@ async function handler(ctx) {
const browser = await puppeteer();
const page = await browser.newPage();

await page.setUserAgent(config.ua);

await page.setExtraHTTPHeaders({
'Accept-Language': 'en-US,en;q=0.9',
});

await page.setRequestInterception(true);

// skip loading images, stylesheets, and fonts
Expand Down

0 comments on commit 612d9cd

Please sign in to comment.