(workspaceOrBuilderId: string)
| 406 | } |
| 407 | |
| 408 | function getWebContentsByWorkspaceOrBuilderId(workspaceOrBuilderId: string): electron.WebContents { |
| 409 | const ww = getWaveWindowByWorkspaceId(workspaceOrBuilderId); |
| 410 | if (ww) { |
| 411 | return ww.activeTabView?.webContents; |
| 412 | } |
| 413 | |
| 414 | const bw = getBuilderWindowById(workspaceOrBuilderId); |
| 415 | if (bw) { |
| 416 | return bw.webContents; |
| 417 | } |
| 418 | |
| 419 | return null; |
| 420 | } |
| 421 | |
| 422 | function convertMenuDefArrToMenu( |
| 423 | webContents: electron.WebContents, |
no test coverage detected