mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
8 lines
201 B
JavaScript
8 lines
201 B
JavaScript
// Electron 主进程 与 渲染进程 交互的桥梁
|
|
const { contextBridge } = require("electron");
|
|
|
|
|
|
// 在window对象下导出只读对象
|
|
contextBridge.exposeInMainWorld("plugin_template", {
|
|
|
|
}); |