refactor: ginify Cookies (#22823)
This commit is contained in:
parent
b327478cf0
commit
222022556f
4 changed files with 55 additions and 42 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
const { EventEmitter } = require('events');
|
||||
const { app, deprecate } = require('electron');
|
||||
const { fromPartition, Session, Cookies, Protocol } = process.electronBinding('session');
|
||||
const { fromPartition, Session, Protocol } = process.electronBinding('session');
|
||||
|
||||
// Public API.
|
||||
Object.defineProperties(exports, {
|
||||
|
@ -16,7 +16,6 @@ Object.defineProperties(exports, {
|
|||
}
|
||||
});
|
||||
|
||||
Object.setPrototypeOf(Cookies.prototype, EventEmitter.prototype);
|
||||
Object.setPrototypeOf(Session.prototype, EventEmitter.prototype);
|
||||
|
||||
Session.prototype._init = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue