diff options
Diffstat (limited to 'src/electron/ipc-api/localServer.ts')
-rw-r--r-- | src/electron/ipc-api/localServer.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/electron/ipc-api/localServer.ts b/src/electron/ipc-api/localServer.ts index d318b93a5..61e56c777 100644 --- a/src/electron/ipc-api/localServer.ts +++ b/src/electron/ipc-api/localServer.ts | |||
@@ -2,7 +2,7 @@ import { ipcMain, BrowserWindow } from 'electron'; | |||
2 | import net from 'net'; | 2 | import net from 'net'; |
3 | import { LOCAL_HOSTNAME, LOCAL_PORT } from '../../config'; | 3 | import { LOCAL_HOSTNAME, LOCAL_PORT } from '../../config'; |
4 | import { userDataPath } from '../../environment'; | 4 | import { userDataPath } from '../../environment'; |
5 | import startServer from '../../internal-server/start'; | 5 | import { server } from '../../internal-server/start'; |
6 | 6 | ||
7 | const portInUse = (port: number): Promise<boolean> => | 7 | const portInUse = (port: number): Promise<boolean> => |
8 | new Promise(resolve => { | 8 | new Promise(resolve => { |
@@ -35,7 +35,7 @@ export default (params: { mainWindow: BrowserWindow }) => { | |||
35 | } | 35 | } |
36 | console.log('Starting local server on port', port); | 36 | console.log('Starting local server on port', port); |
37 | 37 | ||
38 | startServer(userDataPath(), port); | 38 | server(userDataPath(), port); |
39 | 39 | ||
40 | params.mainWindow.webContents.send('localServerPort', { | 40 | params.mainWindow.webContents.send('localServerPort', { |
41 | port, | 41 | port, |