From bab21a01f47b10b39a3beb9fb0826e78b157ba34 Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Sat, 12 Aug 2023 09:45:39 +0800 Subject: [PATCH] adjust.. --- src/content.js | 3 +-- src/userscript.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/content.js b/src/content.js index 794d15e..fc88916 100644 --- a/src/content.js +++ b/src/content.js @@ -4,8 +4,7 @@ import { MSG_TRANS_GETRULE, MSG_TRANS_PUTRULE, } from "./config"; -import { getRules, matchRule } from "./libs"; -import { getSetting } from "./libs"; +import { getSetting, getRules, matchRule } from "./libs"; import { Translator } from "./libs/translator"; /** diff --git a/src/userscript.js b/src/userscript.js index 35f2e53..e4bc71a 100644 --- a/src/userscript.js +++ b/src/userscript.js @@ -3,8 +3,7 @@ import ReactDOM from "react-dom/client"; import Action from "./views/Action"; import createCache from "@emotion/cache"; import { CacheProvider } from "@emotion/react"; -import { getRules, matchRule } from "./libs"; -import { getSetting } from "./libs"; +import { getSetting, getRules, matchRule } from "./libs"; import { Translator } from "./libs/translator"; /**