mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
[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:
parent
130a0fef3d
commit
17e1519410
10 changed files with 89 additions and 15 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue