Skip to content

Commit

Permalink
Disable local storage usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Mar 18, 2024
1 parent 130200b commit b9073e7
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1221,23 +1221,7 @@ const PDFViewerApplication = {

this.pdfThumbnailViewer?.setDocument(pdfDocument);

const storedPromise = (this.store = new ViewHistory(
pdfDocument.fingerprints[0]
))
.getMultiple({
page: null,
zoom: DEFAULT_SCALE_VALUE,
scrollLeft: "0",
scrollTop: "0",
rotation: null,
sidebarView: SidebarView.UNKNOWN,
scrollMode: ScrollMode.UNKNOWN,
spreadMode: SpreadMode.UNKNOWN,
})
.catch(() => {
/* Unable to read from storage; ignoring errors. */
return Object.create(null);
});
const storedPromise = {};

firstPagePromise.then(pdfPage => {
this.loadingBar?.setWidth(this.appConfig.viewerContainer);
Expand Down

0 comments on commit b9073e7

Please sign in to comment.