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
@ -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…
x
Reference in New Issue
Block a user