mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[api-minor] Remove the, now unused, pdfjsLibPromise
global
This global was only introduced to work-around problems caused by the GENERIC PDF.js build using top level await. Since that was removed in the previous commit, this global is now dead code.
This commit is contained in:
parent
2643570364
commit
9418ed19e7
2 changed files with 2 additions and 17 deletions
|
@ -13,15 +13,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Ensure that the viewer waits for the library to complete loading,
|
||||
// to avoid breaking e.g. the standalone viewer components (see issue 17228).
|
||||
if (
|
||||
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
|
||||
!globalThis.pdfjsLib
|
||||
) {
|
||||
await globalThis.pdfjsLibPromise;
|
||||
}
|
||||
|
||||
const {
|
||||
AbortException,
|
||||
AnnotationEditorLayer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue