mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 开发环境(dev 模式)不再强制使用 6806 端口
This commit is contained in:
parent
f8c92bf62f
commit
a7de45d70d
1 changed files with 2 additions and 3 deletions
|
|
@ -382,9 +382,8 @@ const initKernel = (workspace, lang) => {
|
||||||
resolve(false)
|
resolve(false)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (isDevEnv && workspaces.length === 0) {
|
|
||||||
writeLog('got kernel port [' + kernelPort + ']')
|
if (!isDevEnv || workspaces.length > 0) {
|
||||||
} else {
|
|
||||||
const getAvailablePort = () => {
|
const getAvailablePort = () => {
|
||||||
// https://gist.github.com/mikeal/1840641
|
// https://gist.github.com/mikeal/1840641
|
||||||
return new Promise((portResolve, portReject) => {
|
return new Promise((portResolve, portReject) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue