mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
runtime/inspector: pretend to be node (#10115)
Also change frontend URL from inspector.html to js_app.html
This commit is contained in:
parent
dc4ab98ee7
commit
1c6602b85b
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ impl InspectorInfo {
|
||||||
"faviconUrl": "https://deno.land/favicon.ico",
|
"faviconUrl": "https://deno.land/favicon.ico",
|
||||||
"id": self.uuid.to_string(),
|
"id": self.uuid.to_string(),
|
||||||
"title": self.get_title(),
|
"title": self.get_title(),
|
||||||
"type": "deno",
|
"type": "node",
|
||||||
// TODO(ry): "url": "file://",
|
// TODO(ry): "url": "file://",
|
||||||
"webSocketDebuggerUrl": self.get_websocket_debugger_url(),
|
"webSocketDebuggerUrl": self.get_websocket_debugger_url(),
|
||||||
})
|
})
|
||||||
|
@ -124,7 +124,7 @@ impl InspectorInfo {
|
||||||
|
|
||||||
fn get_frontend_url(&self) -> String {
|
fn get_frontend_url(&self) -> String {
|
||||||
format!(
|
format!(
|
||||||
"devtools://devtools/bundled/inspector.html?v8only=true&ws={}/ws/{}",
|
"devtools://devtools/bundled/js_app.html?ws={}/ws/{}&experiments=true&v8only=true",
|
||||||
&self.host, &self.uuid
|
&self.host, &self.uuid
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue