From 29c38b06b2fd700e7dbf49013ad91d473e65e812 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Wed, 13 Nov 2019 13:51:47 +0200 Subject: only paste Japanese text from clipboard --- ext/bg/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/bg/js') 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 { -- cgit v1.2.3