mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
d9563dcbe5
commit
4e53eb4951
1 changed files with 1 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ const {
|
||||||
} = require('electron')
|
} = require('electron')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
const net = require("net");
|
||||||
const fetch = require('electron-fetch').default
|
const fetch = require('electron-fetch').default
|
||||||
process.noAsar = true
|
process.noAsar = true
|
||||||
const appDir = path.dirname(app.getAppPath())
|
const appDir = path.dirname(app.getAppPath())
|
||||||
|
|
@ -886,7 +887,6 @@ const getKernelPort = async () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
let tryGetPortCount = 0
|
let tryGetPortCount = 0
|
||||||
const net = require("net");
|
|
||||||
const getAvailablePort = (port = kernelPort) => {
|
const getAvailablePort = (port = kernelPort) => {
|
||||||
// https://gist.github.com/mikeal/1840641
|
// https://gist.github.com/mikeal/1840641
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue