mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
Merge pull request #10821 from overleaf/jk-fix-pdfjs-comments
[web] Fix pdfJS `imageResourcesPath`, missing `/` at end of URL GitOrigin-RevId: a2488f90d89b7693f0ecdd688835e9cac028cc34
This commit is contained in:
@@ -9,7 +9,7 @@ import { createWorker } from '../../../utils/worker'
|
||||
async function importPDFJS31() {
|
||||
const cMapUrl = '/js/pdfjs-dist31/cmaps/'
|
||||
const standardFontDataUrl = '/fonts/pdfjs-dist31/'
|
||||
const imageResourcesPath = '/images/pdfjs-dist31'
|
||||
const imageResourcesPath = '/images/pdfjs-dist31/'
|
||||
|
||||
const [PDFJS, PDFJSViewer] = await Promise.all([
|
||||
import('pdfjs-dist31/legacy/build/pdf'),
|
||||
@@ -35,7 +35,7 @@ async function importPDFJS31() {
|
||||
async function importPDFJS213() {
|
||||
const cMapUrl = '/js/pdfjs-dist213/cmaps/'
|
||||
const standardFontDataUrl = '/fonts/pdfjs-dist213/'
|
||||
const imageResourcesPath = '/images/pdfjs-dist213'
|
||||
const imageResourcesPath = '/images/pdfjs-dist213/'
|
||||
|
||||
const [PDFJS, PDFJSViewer] = await Promise.all([
|
||||
import('pdfjs-dist213/legacy/build/pdf'),
|
||||
|
||||
Reference in New Issue
Block a user