@@ -139,7 +139,7 @@ class DevHandler {
139139 // If you load the same app in a different tab then we need to throw
140140 // away our old services and start new ones.
141141 if (! (await _isCorrectTab (message.instanceId,
142- appServices.debugService. chromeProxyService.tabConnection))) {
142+ appServices.chromeProxyService.tabConnection))) {
143143 unawaited (appServices.close ());
144144 unawaited (_servicesByAppId.remove (message.appId));
145145 appServices =
@@ -150,10 +150,9 @@ class DevHandler {
150150 .serialize (DevToolsResponse ((b) => b..success = true ))));
151151
152152 appServices.connectedInstanceId = message.instanceId;
153- await appServices.debugService.chromeProxyService.tabConnection.runtime
154- .evaluate (
155- 'window.open("http://${_devTools .hostname }:${_devTools .port }'
156- '/?uri=${appServices .debugService .wsUri }", "", "_blank")' );
153+ await appServices.chromeProxyService.tabConnection.runtime.evaluate (
154+ 'window.open("http://${_devTools .hostname }:${_devTools .port }'
155+ '/?uri=${appServices .debugService .wsUri }", "", "_blank")' );
157156 } else if (message is ConnectRequest ) {
158157 if (appId != null ) {
159158 throw StateError ('Duplicate connection request from the same app. '
@@ -168,10 +167,10 @@ class DevHandler {
168167 if (services != null && services.connectedInstanceId == null ) {
169168 // Re-connect to the previous instance if its in the same tab,
170169 // otherwise do nothing for now.
171- if (await _isCorrectTab (message.instanceId,
172- services.debugService .chromeProxyService.tabConnection)) {
170+ if (await _isCorrectTab (
171+ message.instanceId, services .chromeProxyService.tabConnection)) {
173172 services.connectedInstanceId = message.instanceId;
174- await services.debugService. chromeProxyService.createIsolate ();
173+ await services.chromeProxyService.createIsolate ();
175174 }
176175 }
177176
@@ -184,7 +183,7 @@ class DevHandler {
184183 if (appId != null ) {
185184 var services = await _servicesByAppId[appId];
186185 services? .connectedInstanceId = null ;
187- services? .debugService ? . chromeProxyService? .destroyIsolate ();
186+ services? .chromeProxyService? .destroyIsolate ();
188187 }
189188 }));
190189 }
@@ -210,7 +209,7 @@ class DevHandler {
210209 var appServices = AppDebugServices (chrome, debugService, webdevClient);
211210
212211 unawaited (
213- debugService .chromeProxyService.tabConnection.onClose.first.then ((_) {
212+ appServices .chromeProxyService.tabConnection.onClose.first.then ((_) {
214213 appServices.close ();
215214 _servicesByAppId.remove (appId);
216215 logHandler (
0 commit comments