diff --git a/services/web/frontend/js/features/pdf-preview/util/pdf-js-versions.js b/services/web/frontend/js/features/pdf-preview/util/pdf-js-versions.js index 08e6129852..9a30018b0f 100644 --- a/services/web/frontend/js/features/pdf-preview/util/pdf-js-versions.js +++ b/services/web/frontend/js/features/pdf-preview/util/pdf-js-versions.js @@ -3,6 +3,8 @@ import 'core-js/stable/global-this' // polyfill for globalThis (used by pdf.js) import 'core-js/stable/promise/all-settled' // polyfill for Promise.allSettled (used by pdf.js) +import 'core-js/stable/structured-clone' // polyfill for global.StructuredClone (used by pdf.js) +import 'core-js/stable/array/at' // polyfill for Array.prototype.at (used by pdf.js) import getMeta from '@/utils/meta' import { createWorker } from '@/utils/worker'