feat(desktop-client): add web context menu for bound and workbench windows
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import type { Session, WebContents } from 'electron/main'
|
||||
import { BrowserWindow, WebContentsView, ipcMain, nativeTheme } from 'electron/main'
|
||||
|
||||
import { STANDARD_USER_AGENT } from './user-agent'
|
||||
import { attachWebContextMenu } from './web-context-menu'
|
||||
|
||||
interface WorkbenchWindowOptions {
|
||||
title: string
|
||||
@@ -817,6 +818,7 @@ export async function openWorkbenchWindow(options: WorkbenchWindowOptions): Prom
|
||||
})
|
||||
|
||||
view.webContents.setUserAgent(STANDARD_USER_AGENT)
|
||||
attachWebContextMenu(view.webContents)
|
||||
window.contentView.addChildView(view)
|
||||
|
||||
const record: WorkbenchWindowRecord = {
|
||||
|
||||
Reference in New Issue
Block a user