mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #13021 from Snuffleupagus/createObjectURL-rm-shadow
Remove the, strictly unnecessary, closure and variable shadowing from `createObjectURL`
This commit is contained in:
commit
061637d3f4
2 changed files with 22 additions and 23 deletions
|
@ -701,7 +701,11 @@ class PDFPageView {
|
|||
const actualSizeViewport = this.viewport.clone({ scale: CSS_UNITS });
|
||||
const promise = pdfPage.getOperatorList().then(opList => {
|
||||
ensureNotCancelled();
|
||||
const svgGfx = new SVGGraphics(pdfPage.commonObjs, pdfPage.objs);
|
||||
const svgGfx = new SVGGraphics(
|
||||
pdfPage.commonObjs,
|
||||
pdfPage.objs,
|
||||
/* forceDataSchema = */ viewerCompatibilityParams.disableCreateObjectURL
|
||||
);
|
||||
return svgGfx.getSVG(opList, actualSizeViewport).then(svg => {
|
||||
ensureNotCancelled();
|
||||
this.svg = svg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue