From fca9b555dcd90ff5a47b1c7951fe55d3292dc842 Mon Sep 17 00:00:00 2001 From: William Chong Date: Tue, 17 Dec 2024 01:20:57 +0800 Subject: [PATCH] Polyfill Promise.withResolvers --- web/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app.js b/web/app.js index 53a9c54b08e5e9..49338da06236ec 100644 --- a/web/app.js +++ b/web/app.js @@ -19,6 +19,7 @@ // eslint-disable-next-line max-len /** @typedef {import("../src/display/api.js").PDFDocumentLoadingTask} PDFDocumentLoadingTask */ +import "node_modules/core-js/proposals/promise-with-resolvers.js"; import { animationStarted, apiPageLayoutToViewerModes,