From 06cede50cdf5ca92d5edbea1186c96b78b209b4e Mon Sep 17 00:00:00 2001 From: jingjingxyk Date: Wed, 29 Jun 2022 13:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=B7=A5=E5=85=B7=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/chromium_extension/js/app/box.js | 4 ++-- tools/chromium_extension/js/app/pretty-box.js | 2 +- tools/chromium_extension/js/app/{until.js => utils.js} | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) rename tools/chromium_extension/js/app/{until.js => utils.js} (98%) diff --git a/tools/chromium_extension/js/app/box.js b/tools/chromium_extension/js/app/box.js index 24458a9..31641c9 100644 --- a/tools/chromium_extension/js/app/box.js +++ b/tools/chromium_extension/js/app/box.js @@ -1,4 +1,4 @@ -import * as until from "./until.js"; +import * as utils from "./utils.js"; import * as components from "./components.js"; import * as searchEngine from "./search-engine.js"; @@ -38,5 +38,5 @@ let goToSearchPronounce = (word) => { } }; -let box = { ...until, ...components, ...searchEngine, goToSearchPronounce }; +let box = { ...utils, ...components, ...searchEngine, goToSearchPronounce }; export default box; diff --git a/tools/chromium_extension/js/app/pretty-box.js b/tools/chromium_extension/js/app/pretty-box.js index c357af4..329b7ac 100644 --- a/tools/chromium_extension/js/app/pretty-box.js +++ b/tools/chromium_extension/js/app/pretty-box.js @@ -1,4 +1,4 @@ -import { addClass, removeClass } from "./until.js"; +import { addClass, removeClass } from "./utils.js"; let prettyBox = (box) => { // 参考 https://blog.csdn.net/weixin_41910848/article/details/82218243 diff --git a/tools/chromium_extension/js/app/until.js b/tools/chromium_extension/js/app/utils.js similarity index 98% rename from tools/chromium_extension/js/app/until.js rename to tools/chromium_extension/js/app/utils.js index 6d3078c..376b410 100644 --- a/tools/chromium_extension/js/app/until.js +++ b/tools/chromium_extension/js/app/utils.js @@ -73,7 +73,6 @@ function createJSONFile(content, filename) { a.download = filename; a.click(); setTimeout(function () { - document.body.removeChild(a); window.URL.revokeObjectURL(url); }, 3000); }