From ebd11fe380ddb125d066157720419436e0b65f9b Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 2 Jan 2020 17:04:51 -0800 Subject: [PATCH] chore(wk): make _connection private to session (#357) --- src/webkit/wkConnection.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/webkit/wkConnection.ts b/src/webkit/wkConnection.ts index 6092d1dc03..3bfec31d98 100644 --- a/src/webkit/wkConnection.ts +++ b/src/webkit/wkConnection.ts @@ -45,10 +45,6 @@ export class WKConnection extends EventEmitter { this._transport.onclose = this._onClose.bind(this); } - static fromSession(session: WKTargetSession): WKConnection { - return session._connection; - } - send( method: T, params?: Protocol.CommandParameters[T] @@ -150,7 +146,7 @@ export const WKTargetSessionEvents = { }; export class WKTargetSession extends EventEmitter { - _connection: WKConnection; + private _connection: WKConnection; private _callbacks = new Map void, reject: (e: Error) => void, error: Error, method: string}>(); private _targetType: string; _sessionId: string;