mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-11 22:14:07 +08:00
17 lines
448 B
JavaScript
17 lines
448 B
JavaScript
const {remote} = require("electron");
|
|
|
|
window.market = {
|
|
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);
|
|
},
|
|
refreshPlugin(plugin) {
|
|
return remote.getGlobal("LOCAL_PLUGINS").refreshPlugin(plugin);
|
|
},
|
|
};
|