From 451dadfc419462eec73710cb721dd5e901bc4254 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Tue, 15 Oct 2019 21:00:25 +0200 Subject: [PATCH] init wiki --- wiktionary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiktionary.js b/wiktionary.js index 5482618..ce77de2 100644 --- a/wiktionary.js +++ b/wiktionary.js @@ -35,12 +35,12 @@ var verify_word = function verify_word(word) { "srwhat": "nearmatch" }); req.end(function (res) { - console.log(res) if (res.error) reject(res.error); var data = res.body.query.search; if (data.length == 0) { reject({ info: 'word does not exist' }); } else { + console.log(data) resolve(data[0].title); } });