脚本匹配与注入
Some checks failed
build / Build (push) Failing after 5s
test / Run tests (push) Failing after 8s

This commit is contained in:
2025-04-05 00:53:59 +08:00
parent 9ce1826a34
commit 651384f12c
6 changed files with 160 additions and 29 deletions

View File

@@ -15,9 +15,9 @@ const logger = new LoggerCore({
const server = new Server("inject", msg);
server.on("pageLoad", (data: ScriptRunResouce[]) => {
server.on("pageLoad", (data: { scripts: ScriptRunResouce[] }) => {
logger.logger().debug("inject start");
console.log("inject", data);
const runtime = new InjectRuntime(msg, data);
const runtime = new InjectRuntime(msg, data.scripts);
runtime.start();
});