File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ function startServer(
58
58
// This generally means that some of our config is bad.
59
59
60
60
if ( e . message ?. includes ( 'unrecognized plugin: webrtc' ) ) {
61
- // We have webrtc enabled, but the server is old and doesn't support it.
62
- // Skip that entirely then:
61
+ // We have webrtc enabled, and the server is new enough to recognize plugins and try to
62
+ // start them, but too old to actually support the WebRTC plugin. Skip that entirely then:
63
63
config = {
64
64
...config ,
65
65
webrtc : undefined
@@ -184,8 +184,6 @@ export class ProxyStore {
184
184
}
185
185
186
186
private startIntercepting = flow ( function * ( this : ProxyStore ) {
187
- const webRTCEnabled = this . accountStore . featureFlags . includes ( 'webrtc' ) ;
188
-
189
187
this . adminClient = new PluggableAdmin . AdminClient < {
190
188
http : any ,
191
189
webrtc : any
@@ -207,9 +205,7 @@ export class ProxyStore {
207
205
} ,
208
206
port : this . portConfig
209
207
} ,
210
- ...( webRTCEnabled ? {
211
- webrtc : { }
212
- } : { } )
208
+ webrtc : { }
213
209
} ) ;
214
210
215
211
this . mockttpRequestBuilder = new MockttpPluggableAdmin . MockttpAdminRequestBuilder (
You can’t perform that action at this time.
0 commit comments