fix(source): close jsdom window immediately after getting HTML

This commit is contained in:
WebStreamr 2025-09-14 18:12:41 +00:00
parent 8b479be6c5
commit aded562304
No known key found for this signature in database

View file

@ -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;