[Editor] Init the default highlight color before creating the first editor instance

We want to be able to draw an highlight with the default color but without having an
instance of the HighlightEditor.
This commit is contained in:
Calixte Denizet 2024-01-05 10:10:01 +01:00
parent 130a0fef3d
commit 17e1519410
10 changed files with 89 additions and 15 deletions

View file

@ -203,7 +203,7 @@ const defaultOptions = {
},
pdfBugEnabled: {
/** @type {boolean} */
value: typeof PDFJSDev === "undefined",
value: typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING"),
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
},
printResolution: {