mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-25 11:59:27 +08:00
🙈 不忽略public目录
This commit is contained in:
13
public/feature/preload.js
Normal file
13
public/feature/preload.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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