mirror of
https://github.com/rubickCenter/rubick
synced 2025-11-19 06:27:42 +08:00
♻️ 系统插件钩子函数传入 api 参数
This commit is contained in:
@@ -62,7 +62,10 @@ class App {
|
|||||||
createTray(this.windowCreator.getWindow());
|
createTray(this.windowCreator.getWindow());
|
||||||
registerHotKey(this.windowCreator.getWindow());
|
registerHotKey(this.windowCreator.getWindow());
|
||||||
this.systemPlugins.triggerReadyHooks(
|
this.systemPlugins.triggerReadyHooks(
|
||||||
Object.assign(electron, { mainWindow: this.windowCreator.getWindow() })
|
Object.assign(electron, {
|
||||||
|
mainWindow: this.windowCreator.getWindow(),
|
||||||
|
API,
|
||||||
|
})
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
if (!app.isReady()) {
|
if (!app.isReady()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user