mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-14 23:36:56 +08:00
11 lines
271 B
JavaScript
11 lines
271 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);
|
|
},
|
|
};
|