🙈 不忽略public目录

This commit is contained in:
muwoo
2021-12-15 14:53:17 +08:00
parent c855fb470e
commit afca4f2b5a
11 changed files with 337 additions and 4 deletions

13
public/feature/preload.js Normal file
View 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);
},
}