rubick/public/preload.js
2021-12-02 17:55:45 +08:00

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);
},
};