♻️ 系统插件钩子函数传入 api 参数

This commit is contained in:
木偶 2023-05-15 09:47:33 +08:00 committed by GitHub
parent 668a470276
commit e8d69214b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,10 @@ class App {
createTray(this.windowCreator.getWindow());
registerHotKey(this.windowCreator.getWindow());
this.systemPlugins.triggerReadyHooks(
Object.assign(electron, { mainWindow: this.windowCreator.getWindow() })
Object.assign(electron, {
mainWindow: this.windowCreator.getWindow(),
API,
})
);
};
if (!app.isReady()) {