From 60906df6f2a1839bf2455df27538a4917d5d701c Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 25 Oct 2022 10:26:47 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=A1=8C=E9=9D=A2=E7=AB=AF=E5=86=85?= =?UTF-8?q?=E6=A0=B8=E8=BF=9B=E7=A8=8B=E4=BD=BF=E7=94=A8=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/4952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/electron/main.js b/app/electron/main.js index 1000b980d..4ba960405 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -603,6 +603,10 @@ const initKernel = (initData) => { } const getKernelPort = async () => { + if (isDevEnv) { + return kernelPort + } + await sleep(200) let gotPort = false let count = 0