(window: electron.BaseWindow)
| 28 | }; |
| 29 | |
| 30 | function getWindowWebContents(window: electron.BaseWindow): electron.WebContents { |
| 31 | if (window == null) { |
| 32 | return null; |
| 33 | } |
| 34 | // Check BrowserWindow first (for Tsunami Builder windows) |
| 35 | if (window instanceof electron.BrowserWindow) { |
| 36 | return window.webContents; |
| 37 | } |
| 38 | // Check WaveBrowserWindow (for main Wave windows with tab views) |
| 39 | if (window instanceof WaveBrowserWindow) { |
| 40 | if (window.activeTabView) { |
| 41 | return window.activeTabView.webContents; |
| 42 | } |
| 43 | return null; |
| 44 | } |
| 45 | return null; |
| 46 | } |
| 47 | |
| 48 | async function getWorkspaceMenu(ww?: WaveBrowserWindow): Promise<Electron.MenuItemConstructorOptions[]> { |
| 49 | const workspaceList = await RpcApi.WorkspaceListCommand(ElectronWshClient); |
no outgoing calls
no test coverage detected