Skip to content

Commit

Permalink
[Editor] Don't create the image settings dialog if new alt-text is di…
Browse files Browse the repository at this point in the history
…sabled
  • Loading branch information
calixteman committed Aug 2, 2024
1 parent 4422e6f commit 974911f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,10 @@ const PDFViewerApplication = {
}
}

if (appConfig.secondaryToolbar?.imageAltTextSettingsButton) {
if (
this.mlManager &&
appConfig.secondaryToolbar?.imageAltTextSettingsButton
) {
this.imageAltTextSettings = new ImageAltTextSettings(
appConfig.altTextSettingsDialog,
this.overlayManager,
Expand Down

0 comments on commit 974911f

Please sign in to comment.