This commit is contained in:
Kevin Sawicki 2016-06-09 13:53:36 -07:00
parent 39180e6539
commit 939ae567ac

View file

@ -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
}