Skip to content

Commit b47138e

Browse files
committed
Move global together.
1 parent b368aac commit b47138e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cdp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ let baseDir = "./out";
3434
let assetDir = "./out/assets";
3535

3636
const fontCSSSet = new Set();
37+
const downloadedURLs = new Set();
3738

3839
async function traverse(node, callback, parallel = false) {
3940
if (node.nodeType !== ELEMENT_NODE) return;
@@ -55,7 +56,6 @@ async function traverse(node, callback, parallel = false) {
5556
}
5657
}
5758

58-
const downloadedURLs = new Set();
5959
async function crawl(pageURL) {
6060
// seems that each client is a tab, a tab is a ws connection
6161
const target = await CDP.New();

0 commit comments

Comments
 (0)