File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
webdev/lib/src/serve/handlers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -150,10 +150,10 @@ class DevHandler {
150150 .serialize (DevToolsResponse ((b) => b..success = true ))));
151151
152152 appServices.connectedInstanceId = message.instanceId;
153- await appServices.chrome.chromeConnection
154- // Chrome protocol for spawning a new tab.
155- . getUrl ( 'json/new/? http://${_devTools .hostname }:${_devTools .port }'
156- '/?uri=${appServices .debugService .wsUri }' );
153+ await appServices.debugService.chromeProxyService.tabConnection.runtime
154+ . evaluate (
155+ 'window.open(" http://${_devTools .hostname }:${_devTools .port }'
156+ '/?uri=${appServices .debugService .wsUri }", "", "_blank") ' );
157157 } else if (message is ConnectRequest ) {
158158 if (appId != null ) {
159159 throw StateError ('Duplicate connection request from the same app. '
You can’t perform that action at this time.
0 commit comments