From 95c04821328e0770d9924683e1e6004f80d6efaf Mon Sep 17 00:00:00 2001 From: yuhaowin Date: Thu, 28 Apr 2022 15:01:48 +0800 Subject: [PATCH] refactor --- appcast.json | 2 +- src/main.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/appcast.json b/appcast.json index 5ce71be..250926d 100644 --- a/appcast.json +++ b/appcast.json @@ -4,7 +4,7 @@ { "version": "0.1.5", "desc": "https://github.com/yuhaowin/wordbook-bob-plugin/releases/tag/v0.1.5", - "sha256": "9cc63f7a054bf66b8e8138c04f33c3c382288b3671f0998f5bbfff2881565087", + "sha256": "55bca4fa159d37096aee8fbef2cd02ffc72e66d40c2d4db9bd3f71953ee6c4e5", "url": "https://github.com/yuhaowin/wordbook-bob-plugin/releases/download/v0.1.5/wordbook-bob-plugin-v0.1.5.bobplugin", "minBobVersion": "0.5.4" }, diff --git a/src/main.js b/src/main.js index 16a3d11..a47bdda 100644 --- a/src/main.js +++ b/src/main.js @@ -4,9 +4,9 @@ // 欧路单词本 ID var EUDIC_WORD_BOOK_ID -const YOUDAO_ADD_WORD_URL = "http://dict.youdao.com/wordbook/ajax"; -const EUDIC_ADD_WORD_URL = "https://api.frdic.com/api/open/v1/studylist/words"; -const EUDIC_BOOK_LIST_URL = "https://api.frdic.com/api/open/v1/studylist/category?language=en"; +var YOUDAO_ADD_WORD_URL = "http://dict.youdao.com/wordbook/ajax"; +var EUDIC_ADD_WORD_URL = "https://api.frdic.com/api/open/v1/studylist/words"; +var EUDIC_BOOK_LIST_URL = "https://api.frdic.com/api/open/v1/studylist/category?language=en"; function buildResult(res) { var result = {