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
This commit is contained in:
2026-04-22 16:28:36 -04:00
committed by GitHub
parent 48feeeacad
commit d016b27752
+1 -1
View File
@@ -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' import './vendor/pdfjs/pdf.mjs'
const pdfjsLib = globalThis.pdfjsLib const pdfjsLib = globalThis.pdfjsLib