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:
June Kelly 2022-12-09 09:34:39 +00:00 committed by Copybot
parent f1f43f2ccc
commit 46c3fc7563

View file

@ -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'),