脚本匹配与注入
Some checks failed
build / Build (push) Failing after 5s
test / Run tests (push) Failing after 8s
Some checks failed
build / Build (push) Failing after 5s
test / Run tests (push) Failing after 8s
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user