Lib/renderer/override.js window.open


#1

Hi,

I would like to override/complete BrowserWindowProxy which is declared in electron/lib/renderer/override.js. How it it possible?
Test 1 :
BrowserWindowProxy.prototype.document = function () {
alert(“Test”);
}
in my app.js but a message said that is not defined.

Test2 :
window.open = function (url, frameName, features) { alert(‘Test!’);}
but the alert is not popup when window.open is called in a webview

Thanks in advance

Cédric.