react-electron-browser-view icon indicating copy to clipboard operation
react-electron-browser-view copied to clipboard

view.isDestroyed is not a function

Open rickychan0611 opened this issue 4 years ago • 0 comments

// Connect our event listeners to update the browser view events.forEach((event) => { if (!this.view.isDestroyed()) { this.view.webContents.on(event, (...eventArgs) => { const propName = camelCase(on-${event}`)

      // Proxy events to listeners we got as props
      if (this.props[propName]) this.props[propName](...eventArgs)
    })
  }
})`

should this.view.isDestroyed() be this.view.webContents.isDestroyed() ?

rickychan0611 avatar Jan 02 '21 11:01 rickychan0611