1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

[Editor] Don't show the ml toggle button when the ml is disabled (bug 1920515)

This commit is contained in:
Calixte Denizet 2024-09-23 19:46:32 +02:00
parent b65b7747b6
commit d35a20a8c1
3 changed files with 70 additions and 1 deletions

View file

@ -350,6 +350,7 @@ const PDFViewerApplication = {
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING")) {
Object.assign(opts, {
enableAltText: x => x === "true",
enableFakeMLManager: x => x === "true",
enableGuessAltText: x => x === "true",
enableUpdatedAddImage: x => x === "true",
highlightEditorColors: x => x,