File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 5
5
type MenuItemConstructorOptions ,
6
6
type Event as ElectronEvent ,
7
7
type WebContents ,
8
+ type WebContentsView ,
8
9
} from 'electron' ;
9
10
10
11
export type Labels = {
@@ -135,7 +136,7 @@ export type Options = {
135
136
Window or WebView to add the context menu to.
136
137
When not specified, the context menu will be added to all existing and new windows.
137
138
*/
138
- readonly window ?: BrowserWindow | BrowserView | Electron . WebviewTag | WebContents ;
139
+ readonly window ?: BrowserWindow | BrowserView | Electron . WebviewTag | WebContents | WebContentsView ;
139
140
140
141
/**
141
142
Should return an array of [menu items](https://electronjs.org/docs/api/menu-item) to be prepended to the context menu.
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ Type: `object`
86
86
87
87
#### window
88
88
89
- Type: ` BrowserWindow | BrowserView | WebViewTag | WebContents `
89
+ Type: ` BrowserWindow | BrowserView | WebViewTag | WebContents | WebContentsView `
90
90
91
91
Window or WebView to add the context menu to.
92
92
You can’t perform that action at this time.
0 commit comments