feat: remove getCurrentWindowId IPC event and related functionality for cleaner API

This commit is contained in:
duanshuwen
2026-04-21 22:37:32 +08:00
parent f9c331315b
commit 97a956ffe8
11 changed files with 5 additions and 105 deletions

View File

@@ -41,9 +41,6 @@ const api: WindowApi = {
// 发送消息到主进程
send: (channel: IPC_EVENTS, ...args: any[]) => ipcRenderer.send(channel, ...args),
// 获取窗口ID
getCurrentWindowId: () => ipcRenderer.sendSync(IPC_EVENTS.GET_WINDOW_ID),
// 发送日志
logger: {
debug: (message: string, ...meta: any[]) => ipcRenderer.send(IPC_EVENTS.LOG_DEBUG, message, ...meta),