mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-20 19:22:43 +08:00
14 lines
348 B
JavaScript
14 lines
348 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);
|
|
},
|
|
}
|