1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

[Editor] Don't remove elements from the draw layer after it has been destroyed

Fixes issue #17379.
This commit is contained in:
Calixte Denizet 2023-12-05 22:01:49 +01:00
parent 319e85449e
commit f7fec8c6d7
4 changed files with 84 additions and 1 deletions

View file

@ -130,7 +130,7 @@ const defaultOptions = {
// in Firefox release, but it has to be temporary.
// TODO: remove it when unnecessary.
/** @type {boolean} */
value: typeof PDFJSDev === "undefined",
value: typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING"),
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
},
enablePermissions: {