mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 07:29:38 +00:00
11 lines
294 B
JavaScript
11 lines
294 B
JavaScript
|
|
const { contextBridge } = require('electron')
|
|
const { ipcRenderer } = require('electron')
|
|
|
|
const napcat = {
|
|
getWebUiUrl: async () => {
|
|
return ipcRenderer.invoke("napcat_get_webtoken")
|
|
}
|
|
}
|
|
// 在window对象下导出只读对象
|
|
contextBridge.exposeInMainWorld('napcat', napcat) |