diff options
author | 2022-07-25 08:16:50 +0530 | |
---|---|---|
committer | 2022-07-25 08:17:10 +0530 | |
commit | cf282aa351cbc58691fb1b2fb4764830247cdbe8 (patch) | |
tree | 1a6ac4c9abd8b3de9d358016a5065da86cdd8510 /src/electron/ipc-api/localServer.ts | |
parent | 6.0.1-nightly.3 [skip ci] (diff) | |
download | ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.tar.gz ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.tar.zst ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.zip |
eslint needs to be executed at the top-level to actually workv6.0.1-nightly.3
Diffstat (limited to 'src/electron/ipc-api/localServer.ts')
-rw-r--r-- | src/electron/ipc-api/localServer.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/electron/ipc-api/localServer.ts b/src/electron/ipc-api/localServer.ts index 71a3003d1..6264e719d 100644 --- a/src/electron/ipc-api/localServer.ts +++ b/src/electron/ipc-api/localServer.ts | |||
@@ -39,7 +39,10 @@ export default (params: { mainWindow: BrowserWindow }) => { | |||
39 | port += 1; | 39 | port += 1; |
40 | } | 40 | } |
41 | token = randomBytes(256 / 8).toString('base64url'); | 41 | token = randomBytes(256 / 8).toString('base64url'); |
42 | debug('Starting local server at', `http://localhost:${port}/token/${token}`); | 42 | debug( |
43 | 'Starting local server at', | ||
44 | `http://localhost:${port}/token/${token}`, | ||
45 | ); | ||
43 | await server(userDataPath(), port, token); | 46 | await server(userDataPath(), port, token); |
44 | localServerStarted = true; | 47 | localServerStarted = true; |
45 | } | 48 | } |
@@ -49,7 +52,7 @@ export default (params: { mainWindow: BrowserWindow }) => { | |||
49 | port, | 52 | port, |
50 | token, | 53 | token, |
51 | }); | 54 | }); |
52 | })().catch((error) => { | 55 | })().catch(error => { |
53 | console.error('Error while starting local server', error); | 56 | console.error('Error while starting local server', error); |
54 | }); | 57 | }); |
55 | }); | 58 | }); |