move session wrapper to webcontents
This commit is contained in:
parent
609f5dcaaf
commit
14661819c2
3 changed files with 7 additions and 11 deletions
|
@ -1,4 +1,3 @@
|
|||
const EventEmitter = require('events').EventEmitter
|
||||
const bindings = process.atomBinding('session')
|
||||
const PERSIST_PREFIX = 'persist:'
|
||||
|
||||
|
@ -24,10 +23,3 @@ Object.defineProperty(exports, 'defaultSession', {
|
|||
return bindings.fromPartition('', false)
|
||||
}
|
||||
})
|
||||
|
||||
var wrapSession = function (session) {
|
||||
// session is an EventEmitter.
|
||||
Object.setPrototypeOf(session, EventEmitter.prototype)
|
||||
}
|
||||
|
||||
bindings._setWrapSession(wrapSession)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue