From f079db0471424a873f22315c7911571d467e97ad Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 17 Apr 2016 18:13:20 -0700 Subject: Support switching between edict and enamdict --- ext/fg/js/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/fg/js/api.js') diff --git a/ext/fg/js/api.js b/ext/fg/js/api.js index c65b1702..7997a73f 100644 --- a/ext/fg/js/api.js +++ b/ext/fg/js/api.js @@ -21,8 +21,8 @@ function sendMessage(action, data, callback) { chrome.runtime.sendMessage({action: action, data: data}, callback); } -function findTerm(text, callback) { - sendMessage('findTerm', {text: text}, callback); +function findTerm(text, dict, callback) { + sendMessage('findTerm', {text: text, dict: dict}, callback); } function findKanji(text, callback) { -- cgit v1.2.3