This repository was archived by the owner on Dec 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed
Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff 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- / h t t p s : \/ \/ m i c r o s o f t .g i t h u b .i o \/ j a c d a c - d o c s \/ d a s h b o a r d / g,
33- localhost
34- ? `http://localhost:8000/${ dasboardPath } /`
35- : `https://microsoft.github.io/jacdac-docs/${ dasboardPath } /`
36- )
31+ body = body
32+ . replace (
33+ / h t t p s : \/ \/ m i c r o s o f t .g i t h u b .i o \/ j a c d a c - d o c s \/ d a s h b o a r d / 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" ,
You can’t perform that action at this time.
0 commit comments