From aded5623042d06510245b846c58f6ac939d0e76b Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Sun, 14 Sep 2025 18:12:41 +0000 Subject: [PATCH] fix(source): close jsdom window immediately after getting HTML --- src/source/PrimeWire.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/source/PrimeWire.ts b/src/source/PrimeWire.ts index 5a6f5ea..3ab9198 100644 --- a/src/source/PrimeWire.ts +++ b/src/source/PrimeWire.ts @@ -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;