refactor: BrowserView is owned by a BaseWindow (#35511)
This commit is contained in:
parent
9cdc8bf6ca
commit
f99122abfc
7 changed files with 71 additions and 73 deletions
|
@ -30,7 +30,7 @@ describe('BrowserView module', () => {
|
|||
w = null as any;
|
||||
await p;
|
||||
|
||||
if (view) {
|
||||
if (view && view.webContents) {
|
||||
const p = emittedOnce(view.webContents, 'destroyed');
|
||||
(view.webContents as any).destroy();
|
||||
view = null as any;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue