mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 09:20:54 +00:00
Build fix
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
8de089a4f8
commit
f11feed5ff
@ -1704,9 +1704,9 @@ export function devTool (
|
|||||||
if (existsSync(bdir)) {
|
if (existsSync(bdir)) {
|
||||||
await mkdir(bdir, { recursive: true })
|
await mkdir(bdir, { recursive: true })
|
||||||
}
|
}
|
||||||
const bytes = await resp.bytes()
|
const bytes = await resp.arrayBuffer()
|
||||||
console.log('writing to', opt.output)
|
console.log('writing to', opt.output)
|
||||||
await writeFile(opt.output, bytes, { encoding: 'binary' })
|
await writeFile(opt.output, new Uint8Array(bytes))
|
||||||
} else {
|
} else {
|
||||||
console.error('failed to stop profile', resp.headers)
|
console.error('failed to stop profile', resp.headers)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user