aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-13 13:51:47 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-13 13:51:47 +0200
commit29c38b06b2fd700e7dbf49013ad91d473e65e812 (patch)
treeb5ea521394528d1f9ef9b94f80064a428f6ede18 /ext/bg/js/search.js
parentdb4a30336595eca94e976b6279c1e8c79df85906 (diff)
only paste Japanese text from clipboard
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index ad579918..6f512604 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -248,7 +248,7 @@ class DisplaySearch extends Display {
} else if (IS_FIREFOX === false) {
curText = (await apiClipboardGet()).trim();
}
- if (curText && (curText !== this.clipboardPrevText)) {
+ if (curText && (curText !== this.clipboardPrevText) && jpIsJapaneseText(curText)) {
if (this.isWanakanaEnabled()) {
this.query.value = window.wanakana.toKana(curText);
} else {