diff options
author | marv <rotrobmin@gmail.com> | 2023-12-18 01:57:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 09:57:14 +0000 |
commit | fef568b89db1517481f76b0acfcd6796da693d20 (patch) | |
tree | c6ba042ec7f9b6c8dd39c0fbe1328d8e0bfcc7eb /ext/js/background | |
parent | d594d49ea81e1b546b6e39b7f85f098d9dc6fc48 (diff) |
Fix Non JP Scanning Option for Kanji Dictionaries (#372)
* Fix non JP scanning option for kanji dictionaries
* Fix trailing comma
* Add removeNonJapaneseCharacters to test inputs
Diffstat (limited to 'ext/js/background')
-rw-r--r-- | ext/js/background/backend.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 749c81a6..20c7a189 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -2635,7 +2635,10 @@ export class Backend { */ _getTranslatorFindKanjiOptions(options) { const enabledDictionaryMap = this._getTranslatorEnabledDictionaryMap(options); - return {enabledDictionaryMap}; + return { + enabledDictionaryMap, + removeNonJapaneseCharacters: !options.scanning.alphanumeric + }; } /** |