(webContentsId: number)
| 25 | } |
| 26 | |
| 27 | export function getBuilderWindowByWebContentsId(webContentsId: number): BuilderWindowType { |
| 28 | return builderWindows.find((win) => win.webContents.id === webContentsId); |
| 29 | } |
| 30 | |
| 31 | export function getAllBuilderWindows(): BuilderWindowType[] { |
| 32 | return builderWindows; |