Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit ec8de2a

Browse files
committed
patch: rename proxy
1 parent bada308 commit ec8de2a

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

cli/src/devtools.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ function fetchProxy(localhost: boolean): Promise<string> {
2828
let body = ""
2929
res.on("data", data => (body += data))
3030
res.on("end", () => {
31-
body = body.replace(
32-
/https:\/\/microsoft.github.io\/jacdac-docs\/dashboard/g,
33-
localhost
34-
? `http://localhost:8000/${dasboardPath}/`
35-
: `https://microsoft.github.io/jacdac-docs/${dasboardPath}/`
36-
)
31+
body = body
32+
.replace(
33+
/https:\/\/microsoft.github.io\/jacdac-docs\/dashboard/g,
34+
localhost
35+
? `http://localhost:8000/${dasboardPath}/`
36+
: `https://microsoft.github.io/jacdac-docs/${dasboardPath}/`
37+
)
38+
.replace("Jacdac DevTools", "DeviceScript DevTools")
39+
.replace(
40+
"https://microsoft.github.io/jacdac-docs/favicon.svg",
41+
"https://microsoft.github.io/devicescript/img/favicon.svg"
42+
)
3743
resolve(body)
3844
})
3945
res.on("error", reject)
@@ -70,7 +76,11 @@ export async function devtools(options: DevToolsOptions & CmdOptions) {
7076
? () => {
7177
const bytecode = readFileSync(bytecodeFile)
7278
const dbg = debugFile ? readJSONSync(debugFile) : undefined
73-
debug(`refresh bytecode (${prettySize(bytecode.length)}) with ${clients.length} clients...`)
79+
debug(
80+
`refresh bytecode (${prettySize(bytecode.length)}) with ${
81+
clients.length
82+
} clients...`
83+
)
7484
const msg = JSON.stringify({
7585
type: "bytecode",
7686
channel: "devicescript",

0 commit comments

Comments
 (0)