mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-16 23:54:19 +08:00
♻️ 代码重构
This commit is contained in:
@@ -1 +1,13 @@
|
||||
console.log("hello");
|
||||
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);
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user