mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-26 12:42:34 +08:00
14 lines
368 B
JavaScript
14 lines
368 B
JavaScript
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);
|
|
},
|
|
deletePlugin(plugin) {
|
|
return remote.getGlobal("LOCAL_PLUGINS").deletePlugin(plugin);
|
|
},
|
|
};
|