diff --git a/web/pdf_rendering_queue.js b/web/pdf_rendering_queue.js index 444f1cb01..64b377dd2 100644 --- a/web/pdf_rendering_queue.js +++ b/web/pdf_rendering_queue.js @@ -13,6 +13,8 @@ * limitations under the License. */ +import { RenderingCancelledException } from "pdfjs-lib"; + const CLEANUP_TIMEOUT = 30000; const RenderingStates = { @@ -170,6 +172,9 @@ class PDFRenderingQueue { this.renderHighestPriority(); }) .catch(reason => { + if (reason instanceof RenderingCancelledException) { + return; + } console.error(`renderView: "${reason}"`); }); break;