Inside electron, some functions use constructor to check if it is right object.
However, when condition checks BrowserWindow, WRTWindow object will rejected
even WRTWindow inherit BrowserWindow on C++ side.
This patch will overwrite WRTWindow constructor as BrowserWindow, so now on
WRTWindow will be handled as BrowserWindow.
Change-Id: I878844d4be0cc6a42be38d202a33a27523928f1c
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
BrowserWindow.prototype._init.call(this)
if (typeof this.setup === 'function')
this.setup()
+ this.constructor = BrowserWindow
let self = this
this.webContents.on('new-window', (event, url, frameName, disposition, options) => {
event.preventDefault()