diff options
author | Amine Mouafik <amine@mouafik.fr> | 2019-11-29 01:03:19 +0700 |
---|---|---|
committer | Amine Mouafik <amine@mouafik.fr> | 2019-11-29 01:03:19 +0700 |
commit | d764e6e29e19c50a4e285df41289774ec80a9bbb (patch) | |
tree | 13ab73ed87ef8d061382caa0499131568ae91dd2 /src | |
parent | Update ref to latest recipes fixes (diff) | |
download | ferdium-app-d764e6e29e19c50a4e285df41289774ec80a9bbb.tar.gz ferdium-app-d764e6e29e19c50a4e285df41289774ec80a9bbb.tar.zst ferdium-app-d764e6e29e19c50a4e285df41289774ec80a9bbb.zip |
Rename server to internal-server to avoid confusion
Diffstat (limited to 'src')
-rw-r--r-- | src/electron/ipc-api/localServer.js | 9 | ||||
-rw-r--r-- | src/features/appearance/index.js | 4 | ||||
m--------- | src/internal-server (renamed from src/server) | 0 |
3 files changed, 5 insertions, 8 deletions
diff --git a/src/electron/ipc-api/localServer.js b/src/electron/ipc-api/localServer.js index d12fb5708..9b800fdf6 100644 --- a/src/electron/ipc-api/localServer.js +++ b/src/electron/ipc-api/localServer.js | |||
@@ -1,6 +1,6 @@ | |||
1 | import { ipcMain, app } from 'electron'; | 1 | import { ipcMain, app } from 'electron'; |
2 | import net from 'net'; | 2 | import net from 'net'; |
3 | import startServer from '../../server/start'; | 3 | import startServer from '../../internal-server/start'; |
4 | 4 | ||
5 | const DEFAULT_PORT = 45569; | 5 | const DEFAULT_PORT = 45569; |
6 | 6 | ||
@@ -31,15 +31,12 @@ export default (params) => { | |||
31 | let port = DEFAULT_PORT; | 31 | let port = DEFAULT_PORT; |
32 | (async () => { | 32 | (async () => { |
33 | // eslint-disable-next-line no-await-in-loop | 33 | // eslint-disable-next-line no-await-in-loop |
34 | while (await portInUse(port) && port < DEFAULT_PORT + 10) { | 34 | while ((await portInUse(port)) && port < DEFAULT_PORT + 10) { |
35 | port += 1; | 35 | port += 1; |
36 | } | 36 | } |
37 | console.log('Starting local server on port', port); | 37 | console.log('Starting local server on port', port); |
38 | 38 | ||
39 | startServer( | 39 | startServer(app.getPath('userData'), port); |
40 | app.getPath('userData'), | ||
41 | port, | ||
42 | ); | ||
43 | 40 | ||
44 | params.mainWindow.webContents.send('localServerPort', { | 41 | params.mainWindow.webContents.send('localServerPort', { |
45 | port, | 42 | port, |
diff --git a/src/features/appearance/index.js b/src/features/appearance/index.js index cd4d60c20..8a81054df 100644 --- a/src/features/appearance/index.js +++ b/src/features/appearance/index.js | |||
@@ -54,7 +54,7 @@ function generateServiceRibbonWidthStyle(width) { | |||
54 | .tab-item .tab-item__icon { | 54 | .tab-item .tab-item__icon { |
55 | width: ${width / 2}px !important; | 55 | width: ${width / 2}px !important; |
56 | } | 56 | } |
57 | ` | 57 | `; |
58 | } | 58 | } |
59 | 59 | ||
60 | function generateStyle(settings) { | 60 | function generateStyle(settings) { |
@@ -62,7 +62,7 @@ function generateStyle(settings) { | |||
62 | 62 | ||
63 | const { | 63 | const { |
64 | accentColor, | 64 | accentColor, |
65 | serviceRibbonWidth | 65 | serviceRibbonWidth, |
66 | } = settings; | 66 | } = settings; |
67 | 67 | ||
68 | if (accentColor !== DEFAULT_APP_SETTINGS.accentColor) { | 68 | if (accentColor !== DEFAULT_APP_SETTINGS.accentColor) { |
diff --git a/src/server b/src/internal-server | |||
Subproject cca6cd984caf729722153e58f44c01319c4bd63 | Subproject cca6cd984caf729722153e58f44c01319c4bd63 | ||