mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 08:38:06 +02:00
Freeze evaluatorOptions
in the src/core/pdf_manager.js file
Given that these options are passed from the API we don't want to accidentally modify them.
This commit is contained in:
parent
63b66b412c
commit
3cd6c6c0e6
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class BasePdfManager {
|
|||
// the worker-thread code.
|
||||
args.evaluatorOptions.isOffscreenCanvasSupported &&=
|
||||
FeatureTest.isOffscreenCanvasSupported;
|
||||
this.evaluatorOptions = args.evaluatorOptions;
|
||||
this.evaluatorOptions = Object.freeze(args.evaluatorOptions);
|
||||
}
|
||||
|
||||
get docId() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue