aboutsummaryrefslogtreecommitdiff
path: root/ext/js/background
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-07-09 17:31:16 -0400
committerGitHub <noreply@github.com>2021-07-09 17:31:16 -0400
commit0d167095479822adf1ed8918e3d1a349b3a53377 (patch)
treed99c720a58451e70d44d4a03b1c2c2c3819328a8 /ext/js/background
parentdaa44a8389806046ca8fde9fa1c96c1e961393f4 (diff)
JapaneseUtil updates (#1813)
* Rename test file * Use shorthand * Add support checking functions * Remove convertReading from JapaneseUtil
Diffstat (limited to 'ext/js/background')
-rw-r--r--ext/js/background/backend.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js
index c797bbf5..af847610 100644
--- a/ext/js/background/backend.js
+++ b/ext/js/background/backend.js
@@ -1066,7 +1066,7 @@ class Backend {
if (
dictionaryEntries.length > 0 &&
originalTextLength > 0 &&
- (originalTextLength !== character.length || this._japaneseUtil.isCodePointJapanese(codePoint))
+ (originalTextLength !== character.length || jp.isCodePointJapanese(codePoint))
) {
previousUngroupedSegment = null;
const {headwords: [{term, reading}]} = dictionaryEntries[0];