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 create the image settings dialog if new alt-text is disabled

This commit is contained in:
Calixte Denizet 2024-08-02 09:50:42 +02:00
parent 4422e6fb3b
commit 974911f24f

View file

@ -557,7 +557,10 @@ const PDFViewerApplication = {
}
}
if (appConfig.secondaryToolbar?.imageAltTextSettingsButton) {
if (
this.mlManager &&
appConfig.secondaryToolbar?.imageAltTextSettingsButton
) {
this.imageAltTextSettings = new ImageAltTextSettings(
appConfig.altTextSettingsDialog,
this.overlayManager,