Cleanup the JavaScript code of session
This commit is contained in:
parent
18f005092b
commit
d105524135
2 changed files with 12 additions and 14 deletions
|
@ -5,7 +5,6 @@ const {ipcMain, Menu, NavigationController} = require('electron')
|
|||
|
||||
const binding = process.atomBinding('web_contents')
|
||||
const debuggerBinding = process.atomBinding('debugger')
|
||||
const sessionBinding = process.atomBinding('session')
|
||||
|
||||
let nextId = 0
|
||||
|
||||
|
@ -212,14 +211,8 @@ let wrapDebugger = function (webContentsDebugger) {
|
|||
Object.setPrototypeOf(webContentsDebugger, EventEmitter.prototype)
|
||||
}
|
||||
|
||||
var wrapSession = function (session) {
|
||||
// session is an EventEmitter.
|
||||
Object.setPrototypeOf(session, EventEmitter.prototype)
|
||||
}
|
||||
|
||||
binding._setWrapWebContents(wrapWebContents)
|
||||
debuggerBinding._setWrapDebugger(wrapDebugger)
|
||||
sessionBinding._setWrapSession(wrapSession)
|
||||
|
||||
module.exports = {
|
||||
create (options = {}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue