mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952
This commit is contained in:
parent
8ef77ab082
commit
60906df6f2
1 changed files with 4 additions and 0 deletions
|
|
@ -603,6 +603,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