aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display
diff options
context:
space:
mode:
authormarv <rotrobmin@gmail.com>2024-07-03 03:00:07 -0700
committerGitHub <noreply@github.com>2024-07-03 10:00:07 +0000
commit066ca66fc4033da39d0aecd73b0f5c200cb3f3ed (patch)
tree64d00048c4dd0b422141a72b9c6b1310f59fc496 /ext/js/display
parentc1f0343feeb8b8a8feaa942022150f971e118659 (diff)
Add Option for Scanning Alt Text (#1169)
* Add Option for Scanning Alt Text * Don't scan alt text if option disabled * Add scanAltText to Options Schema * Add `scanning.scanAltText` Update Function * Bump Options Test Version * Remove Param Annotation
Diffstat (limited to 'ext/js/display')
-rw-r--r--ext/js/display/display.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index 3d18e416..01406382 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -461,6 +461,7 @@ export class Display extends EventDispatcher {
preventMiddleMouse: scanningOptions.preventMiddleMouse.onSearchQuery,
matchTypePrefix: false,
sentenceParsingOptions,
+ scanAltText: scanningOptions.scanAltText,
},
});
@@ -1984,6 +1985,7 @@ export class Display extends EventDispatcher {
layoutAwareScan: scanningOptions.layoutAwareScan,
preventMiddleMouse: false,
sentenceParsingOptions,
+ scanAltText: scanningOptions.scanAltText,
});
this._contentTextScanner.setEnabled(true);