mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
♻️ 桌面端内核进程端口号写入文件 port.json https://github.com/siyuan-note/siyuan/issues/6337
This commit is contained in:
parent
ec008b2fee
commit
1c03d11f2b
1 changed files with 4 additions and 0 deletions
|
|
@ -602,6 +602,10 @@ const initKernel = (initData) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getKernelPort = async () => {
|
const getKernelPort = async () => {
|
||||||
|
if (isDevEnv) {
|
||||||
|
return kernelPort
|
||||||
|
}
|
||||||
|
|
||||||
await sleep(200)
|
await sleep(200)
|
||||||
let gotPort = false
|
let gotPort = false
|
||||||
let count = 0
|
let count = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue