fix(source): close jsdom window immediately after getting HTML
This commit is contained in:
parent
8b479be6c5
commit
aded562304
1 changed files with 2 additions and 0 deletions
|
|
@ -66,6 +66,8 @@ export class PrimeWire extends Source {
|
|||
|
||||
const $ = cheerio.load(jsdom.window.document.documentElement.outerHTML);
|
||||
|
||||
jsdom.window.close();
|
||||
|
||||
const linksTokenMatch = appJs.match(/t="(0\.x.*?)"/) as string[];
|
||||
const linksToken = linksTokenMatch[1] as string;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue