1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-08 15:19:40 -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:
Aaron O'Mullan 2021-04-10 19:12:59 +02:00 committed by GitHub
parent dc4ab98ee7
commit 1c6602b85b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ impl InspectorInfo {
"faviconUrl": "https://deno.land/favicon.ico",
"id": self.uuid.to_string(),
"title": self.get_title(),
"type": "deno",
"type": "node",
// TODO(ry): "url": "file://",
"webSocketDebuggerUrl": self.get_websocket_debugger_url(),
})
@ -124,7 +124,7 @@ impl InspectorInfo {
fn get_frontend_url(&self) -> String {
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
)
}