🎨
This commit is contained in:
parent
39180e6539
commit
939ae567ac
1 changed files with 5 additions and 2 deletions
|
@ -91,8 +91,11 @@ const getGuestWindow = function (guestId) {
|
|||
if (guestContents == null) return
|
||||
|
||||
let guestWindow = BrowserWindow.fromWebContents(guestContents)
|
||||
if (guestWindow == null && guestContents.hostWebContents != null) {
|
||||
guestWindow = BrowserWindow.fromWebContents(guestContents.hostWebContents)
|
||||
if (guestWindow == null) {
|
||||
const hostContents = guestContents.hostWebContents
|
||||
if (hostContents != null) {
|
||||
guestWindow = BrowserWindow.fromWebContents(hostContents)
|
||||
}
|
||||
}
|
||||
return guestWindow
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue