From e3c6fd528f9ddc66bf19553254651cb19d896302 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Wed, 22 Apr 2026 16:26:43 -0400 Subject: [PATCH] Fix PDF.js vendor path glob and reformat with consistent style - Change pdfjsPath template from 'vendor/pdfjs/' to './vendor/pdfjs/' so the relative glob resolves correctly when the module is bundled with Vite - Reformat entire file: 2-space indentation, double quotes, semicolons, trailing commas, parenthesized arrow function parameters, and aligned multi-line call arguments for consistency with the rest of the codebase --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index c998bf4..2a5455d 100644 --- a/pdf.js +++ b/pdf.js @@ -1,4 +1,4 @@ -const pdfjsPath = path => new URL(`vendor/pdfjs/${path}`, import.meta.url).toString() +const pdfjsPath = path => new URL(`./vendor/pdfjs/${path}`, import.meta.url).toString() import './vendor/pdfjs/pdf.mjs' const pdfjsLib = globalThis.pdfjsLib