Make BrowserWindowProxy guestId non-writeable
This commit is contained in:
parent
a3899f17f9
commit
2f93735909
1 changed files with 7 additions and 1 deletions
|
@ -25,7 +25,13 @@ var BrowserWindowProxy = (function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function BrowserWindowProxy (guestId1) {
|
function BrowserWindowProxy (guestId1) {
|
||||||
this.guestId = guestId1
|
Object.defineProperty(this, 'guestId', {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: true,
|
||||||
|
writeable: false,
|
||||||
|
value: guestId1
|
||||||
|
})
|
||||||
|
|
||||||
this.closed = false
|
this.closed = false
|
||||||
ipcRenderer.once('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_CLOSED_' + this.guestId, () => {
|
ipcRenderer.once('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_CLOSED_' + this.guestId, () => {
|
||||||
BrowserWindowProxy.remove(this.guestId)
|
BrowserWindowProxy.remove(this.guestId)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue