refactor: ginify Cookies (#22823)

This commit is contained in:
Jeremy Apthorp 2020-03-25 15:34:53 -07:00 committed by GitHub
parent b327478cf0
commit 222022556f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 55 additions and 42 deletions

View file

@ -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 () {