mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 开发环境(dev 模式)不再强制使用 6806 端口
This commit is contained in:
@@ -382,9 +382,8 @@ const initKernel = (workspace, lang) => {
|
||||
resolve(false)
|
||||
return
|
||||
}
|
||||
if (isDevEnv && workspaces.length === 0) {
|
||||
writeLog('got kernel port [' + kernelPort + ']')
|
||||
} else {
|
||||
|
||||
if (!isDevEnv || workspaces.length > 0) {
|
||||
const getAvailablePort = () => {
|
||||
// https://gist.github.com/mikeal/1840641
|
||||
return new Promise((portResolve, portReject) => {
|
||||
|
||||
Reference in New Issue
Block a user