mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user