Skip to content

Commit 49b87fc

Browse files
committed
Use cached Youdao result in all the places
1 parent 9bf4893 commit 49b87fc

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

include/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function show_def(word) {
371371
$("#extradef .content").html("<p>loading...</p>");
372372

373373
$.ajax({
374-
url: "http://halo.xhacker.im/youdao/query/" + word,
374+
url: youdao_url + word,
375375
dataType: "json",
376376
success: function(data) {
377377
var def = "", i;

include/common.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
const YOUDAO_API_KEYFROM = "HaloWordDictionary";
2-
const YOUDAO_API_KEY = "1311342268";
3-
var youdao_url = "https://fanyi.youdao.com/fanyiapi.do?keyfrom=" + YOUDAO_API_KEYFROM + "&key=" + YOUDAO_API_KEY + "&type=data&doctype=json&version=1.1&q=";
4-
5-
const WEBSTER_KEY = "6d9366e8-dc95-4b44-931a-ff90bc8f96bd"
1+
var youdao_url = "http://halo.xhacker.im/youdao/query/";

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Halo Word Dictionary",
33
"short_name": "Halo Word",
4-
"version": "0.6.6",
4+
"version": "0.6.7",
55
"manifest_version": 2,
66

77
"description": "精巧易用的英汉字典,界面简洁舒适。包含单词表、划词查询、右键查询等功能。Enjoy!",

0 commit comments

Comments
 (0)