function (guestInstanceId, contents) {
  const guest = getGuest(guestInstanceId)
  if (!guest) {
    throw new Error(`Invalid guestInstanceId: ${guestInstanceId}`)
  }
  if (guest.hostWebContents !== contents) {
    throw new Error(`Access denied to guestInstanceId: ${guestInstanceId}`)
  }
  return guest
}
function (guestInstanceId, contents) {
  const guest = getGuest(guestInstanceId)
  if (!guest) {
    throw new Error(`Invalid guestInstanceId: ${guestInstanceId}`)
  }
  if (guest.hostWebContents !== contents) {
    throw new Error(`Access denied to guestInstanceId: ${guestInstanceId}`)
  }
  return guest
}
function ( guestInstanceId , contents ) { const guest = getGuest ( guestInstanceId ) if ( ! guest ) { throw new Error ( ` ${ guestInstanceId } ` ) } if ( guest . hostWebContents !== contents ) { throw new Error ( ` ${ guestInstanceId } ` ) } return guest }
Returns WebContents from its guest id hosted in given webContents.
Returns WebContents from its guest id hosted in given webContents .
Returns the guest id that has the given contents