From: Ardis Lu Date: Thu, 24 Sep 2026 06:09:48 +0000 (-0700) Subject: Do not hardcode local file name in error X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=bb9cb3f3e5fd1ac943e778b9d27130ff211675dc;p=envpass 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. --- 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