mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Slightly simplify the isThumbnailViewEnabled
check in PDFRenderingQueue.renderHighestPriority
This commit is contained in:
parent
91692a20d1
commit
3dc738c4c8
1 changed files with 5 additions and 4 deletions
|
@ -82,10 +82,11 @@ class PDFRenderingQueue {
|
|||
return;
|
||||
}
|
||||
// No pages needed rendering, so check thumbnails.
|
||||
if (this.pdfThumbnailViewer && this.isThumbnailViewEnabled) {
|
||||
if (this.pdfThumbnailViewer.forceRendering()) {
|
||||
return;
|
||||
}
|
||||
if (
|
||||
this.isThumbnailViewEnabled &&
|
||||
this.pdfThumbnailViewer?.forceRendering()
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.printing) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue