[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:
Calixte Denizet 2024-07-05 17:56:41 +02:00
parent e777ae2258
commit 0fba6e570e
8 changed files with 29 additions and 10 deletions

View file

@ -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
);
},