From bb9cb3f3e5fd1ac943e778b9d27130ff211675dc Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 23 Sep 2026 23:09:48 -0700 Subject: [PATCH] Do not hardcode local file name in error Since `getHTML` is now a dependency injection, this file name may not be the same every time so this reference should not be hardcoded. --- src/getPrf.js | 4 ++-- test/getPrf.test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/getPrf.js b/src/getPrf.js index cefd1a5..49a199d 100644 --- a/src/getPrf.js +++ b/src/getPrf.js @@ -76,10 +76,10 @@ export async function getPrf(options = {}) { const style = html.match(/([\s\S]*)<\/style>/i)?.[1]; const script = html.match(/([\s\S]*)<\/script>/i)?.[1]; if (style === undefined) { - throw new Error('Could not find