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