inject builtin rules

This commit is contained in:
Gabe Yuan
2023-08-17 15:55:44 +08:00
parent bd45947d68
commit 0b9fe65833
7 changed files with 119 additions and 60 deletions

View File

@@ -29,7 +29,7 @@ import { Translator } from "./libs/translator";
// 翻译页面
const setting = await getSetting();
const rules = await getRules();
const rule = matchRule(rules, document.location.href);
const rule = matchRule(rules, document.location.href, setting);
const translator = new Translator(rule, setting);
// 浮球按钮