File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,6 @@ export class RelayConnection {
135
135
}
136
136
137
137
private async _handleCommand ( message : ProtocolCommand ) : Promise < any > {
138
- if ( message . method === 'getVersion' ) {
139
- const { version } = chrome . runtime . getManifest ( ) ;
140
- return { version } ;
141
- }
142
138
if ( message . method === 'attachToTab' ) {
143
139
await this . _tabPromise ;
144
140
debugLog ( 'Attaching debugger to tab:' , this . _debuggee ) ;
Original file line number Diff line number Diff line change @@ -108,13 +108,6 @@ export class CDPRelayServer {
108
108
new Promise ( ( _ , reject ) => abortSignal . addEventListener ( 'abort' , reject ) )
109
109
] ) ;
110
110
debugLogger ( 'Extension connection established' ) ;
111
- const { version } = await this . _extensionConnection ! . send ( 'getVersion' , { } ) . catch ( error => {
112
- debugLogger ( 'getVersion error' , error ) ;
113
- return { version : '0.0.34' } ; // First released version, didn't support the "getVersion" command.
114
- } ) ;
115
- debugLogger ( 'Extension version:' , version ) ;
116
- if ( version !== packageJSON . version )
117
- throw new Error ( `Extension version mismatch: expected ${ packageJSON . version } , got ${ version } . Make sure the extension is up to date.` ) ;
118
111
}
119
112
120
113
private _connectBrowser ( clientInfo : ClientInfo ) {
You can’t perform that action at this time.
0 commit comments