mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-19 17:47:37 +08:00
✨ 支持本地启动,修改mac 下获取 APP icon 的方式
This commit is contained in:
@@ -319,6 +319,22 @@ class API extends DBInstance {
|
||||
ks.sendKeys(keys);
|
||||
}
|
||||
}
|
||||
|
||||
public addLocalStartPlugin({ data: { plugin } }, window) {
|
||||
window.webContents.executeJavaScript(
|
||||
`window.addLocalStartPlugin(${JSON.stringify({
|
||||
plugin,
|
||||
})})`
|
||||
);
|
||||
}
|
||||
|
||||
public removeLocalStartPlugin({ data: { plugin } }, window) {
|
||||
window.webContents.executeJavaScript(
|
||||
`window.removeLocalStartPlugin(${JSON.stringify({
|
||||
plugin,
|
||||
})})`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default new API();
|
||||
|
||||
Reference in New Issue
Block a user