refactor: try just using regular [Sync] for MessageSync (#20797)
This commit is contained in:
parent
6cc9f0c34e
commit
54b4756a29
4 changed files with 16 additions and 106 deletions
|
@ -116,7 +116,7 @@ BrowserWindow.getFocusedWindow = () => {
|
|||
|
||||
BrowserWindow.fromWebContents = (webContents) => {
|
||||
for (const window of BrowserWindow.getAllWindows()) {
|
||||
if (window.webContents.equal(webContents)) return window
|
||||
if (window.webContents && window.webContents.equal(webContents)) return window
|
||||
}
|
||||
|
||||
return null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue