Skip to content

Commit 1563330

Browse files
committed
Fix format
1 parent eb5eac7 commit 1563330

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

scripts/double-check-refcache-400s.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ async function retry404sAndUpdateCache() {
5050
}
5151

5252
await retry404sAndUpdateCache();
53-

scripts/get-url-status.mjs

+8-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ async function getUrlHeadless(url) {
1717
browser = await puppeteer.launch();
1818
const page = await browser.newPage();
1919

20-
const response = await page.goto(url, { waitUntil: 'networkidle2', timeout: 9000 });
20+
const response = await page.goto(url, {
21+
waitUntil: 'networkidle2',
22+
timeout: 9000,
23+
});
2124

2225
if (!response) throw new Error('No response from server.');
2326

@@ -40,7 +43,10 @@ async function getUrlInBrowser(url) {
4043
browser = await puppeteer.launch({ headless: false });
4144

4245
const page = await browser.newPage();
43-
const response = await page.goto(url, { waitUntil: "networkidle2", timeout: 30000 });
46+
const response = await page.goto(url, {
47+
waitUntil: 'networkidle2',
48+
timeout: 30000,
49+
});
4450

4551
if (!response) throw new Error('No response from server.');
4652

0 commit comments

Comments
 (0)