mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-02 04:17:24 +02:00
Merge pull request #19888 from Snuffleupagus/rm-BasePdfManager-catalog-getter
Remove the `BasePdfManager.prototype.catalog` getter
This commit is contained in:
commit
bd81d390c7
@ -95,10 +95,6 @@ class BasePdfManager {
|
|||||||
return this._docBaseUrl;
|
return this._docBaseUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
get catalog() {
|
|
||||||
return this.pdfDocument.catalog;
|
|
||||||
}
|
|
||||||
|
|
||||||
ensureDoc(prop, args) {
|
ensureDoc(prop, args) {
|
||||||
return this.ensure(this.pdfDocument, prop, args);
|
return this.ensure(this.pdfDocument, prop, args);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -118,7 +118,7 @@ class StructTreeRoot {
|
|||||||
pdfManager,
|
pdfManager,
|
||||||
changes,
|
changes,
|
||||||
}) {
|
}) {
|
||||||
const root = pdfManager.catalog.cloneDict();
|
const root = await pdfManager.ensureCatalog("cloneDict");
|
||||||
const cache = new RefSetCache();
|
const cache = new RefSetCache();
|
||||||
cache.put(catalogRef, root);
|
cache.put(catalogRef, root);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user