diff --git a/package.json b/package.json index 976c535c..215ae030 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scriptcat", - "version": "0.11.0-beta.1", + "version": "0.11.0-beta.2", "description": "脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!", "author": "CodFrm", "license": "GPLv3", diff --git a/src/pages/install/main.tsx b/src/pages/install/main.tsx index 64054f6d..fd14a9d8 100644 --- a/src/pages/install/main.tsx +++ b/src/pages/install/main.tsx @@ -10,6 +10,7 @@ import IoC from "@App/app/ioc"; import DBWriter from "@App/app/logger/db_writer"; import { LoggerDAO } from "@App/app/repo/logger"; import LoggerCore from "@App/app/logger/core"; +import { MessageHander } from "@App/app/message/message"; import MainLayout from "../components/layout/MainLayout"; import App from "./App"; @@ -26,7 +27,7 @@ loggerCore.logger().debug("install start"); const con = new MessageInternal("install"); -IoC.registerInstance(MessageInternal, con); +IoC.registerInstance(MessageInternal, con).alias(MessageHander); ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(