diff options
author | marv <rotrobmin@gmail.com> | 2024-07-03 03:00:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 10:00:07 +0000 |
commit | 066ca66fc4033da39d0aecd73b0f5c200cb3f3ed (patch) | |
tree | 64d00048c4dd0b422141a72b9c6b1310f59fc496 /ext/js/display | |
parent | c1f0343feeb8b8a8feaa942022150f971e118659 (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.js | 2 |
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); |