mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
[Editor] Change the enableML pref for enableAltText (bug 1905923)
We want to use this pref to make a Nimbus experiment in the next weeks.
This commit is contained in:
parent
e777ae2258
commit
0fba6e570e
8 changed files with 29 additions and 10 deletions
|
@ -752,10 +752,11 @@ const PDFViewerApplication = {
|
|||
},
|
||||
|
||||
get mlManager() {
|
||||
const enableAltText = AppOptions.get("enableAltText");
|
||||
return shadow(
|
||||
this,
|
||||
"mlManager",
|
||||
AppOptions.get("enableML") === true ? new MLManager() : null
|
||||
enableAltText === true ? new MLManager({ enableAltText }) : null
|
||||
);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue