mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-17 16:24:16 +08:00
✨ 支持ui插件下载&运行
This commit is contained in:
10
public/preload.js
Normal file
10
public/preload.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const {remote} = require("electron");
|
||||
console.log(remote)
|
||||
window.rubick = {
|
||||
getLocalPlugins() {
|
||||
return remote.getGlobal("LOCAL_PLUGINS").getLocalPlugins();
|
||||
},
|
||||
downloadPlugin(plugin) {
|
||||
return remote.getGlobal("LOCAL_PLUGINS").downloadPlugin(plugin);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user