mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
f1f43f2ccc
commit
46c3fc7563
1 changed files with 2 additions and 2 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue