diff options
Diffstat (limited to 'src/environment-remote.ts')
-rw-r--r-- | src/environment-remote.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/environment-remote.ts b/src/environment-remote.ts index c87e89772..298004b90 100644 --- a/src/environment-remote.ts +++ b/src/environment-remote.ts | |||
@@ -2,12 +2,12 @@ import { join } from 'path'; | |||
2 | import osName from 'os-name'; | 2 | import osName from 'os-name'; |
3 | import { api as electronApi } from './electron-util'; | 3 | import { api as electronApi } from './electron-util'; |
4 | import { | 4 | import { |
5 | LIVE_FERDI_API, | 5 | LIVE_FERDIUM_API, |
6 | DEV_FRANZ_API, | 6 | DEV_FRANZ_API, |
7 | LOCAL_API, | 7 | LOCAL_API, |
8 | LOCAL_API_WEBSITE, | 8 | LOCAL_API_WEBSITE, |
9 | DEV_API_FRANZ_WEBSITE, | 9 | DEV_API_FRANZ_WEBSITE, |
10 | LIVE_API_FERDI_WEBSITE, | 10 | LIVE_API_FERDIUM_WEBSITE, |
11 | LIVE_WS_API, | 11 | LIVE_WS_API, |
12 | LOCAL_WS_API, | 12 | LOCAL_WS_API, |
13 | DEV_WS_API, | 13 | DEV_WS_API, |
@@ -26,12 +26,12 @@ import { | |||
26 | import * as buildInfo from './buildInfo.json'; | 26 | import * as buildInfo from './buildInfo.json'; |
27 | 27 | ||
28 | export const { app } = electronApi; | 28 | export const { app } = electronApi; |
29 | export const ferdiVersion = app.getVersion(); | 29 | export const ferdiumVersion = app.getVersion(); |
30 | export const ferdiLocale = app.getLocale(); | 30 | export const ferdiumLocale = app.getLocale(); |
31 | 31 | ||
32 | // Set app directory before loading user modules | 32 | // Set app directory before loading user modules |
33 | if (process.env.FERDI_APPDATA_DIR != null) { | 33 | if (process.env.FERDIUM_APPDATA_DIR != null) { |
34 | app.setPath('appData', process.env.FERDI_APPDATA_DIR); | 34 | app.setPath('appData', process.env.FERDIUM_APPDATA_DIR); |
35 | app.setPath('userData', app.getPath('appData')); | 35 | app.setPath('userData', app.getPath('appData')); |
36 | } else if (process.env.PORTABLE_EXECUTABLE_DIR != null) { | 36 | } else if (process.env.PORTABLE_EXECUTABLE_DIR != null) { |
37 | app.setPath( | 37 | app.setPath( |
@@ -68,9 +68,9 @@ let wsApi: string; | |||
68 | let web: string; | 68 | let web: string; |
69 | let todos: string; | 69 | let todos: string; |
70 | if (!isDevMode || (isDevMode && useLiveAPI)) { | 70 | if (!isDevMode || (isDevMode && useLiveAPI)) { |
71 | api = LIVE_FERDI_API; | 71 | api = LIVE_FERDIUM_API; |
72 | wsApi = LIVE_WS_API; | 72 | wsApi = LIVE_WS_API; |
73 | web = LIVE_API_FERDI_WEBSITE; | 73 | web = LIVE_API_FERDIUM_WEBSITE; |
74 | todos = PRODUCTION_TODOS_FRONTEND_URL; | 74 | todos = PRODUCTION_TODOS_FRONTEND_URL; |
75 | } else if (isDevMode && useLocalAPI) { | 75 | } else if (isDevMode && useLocalAPI) { |
76 | api = LOCAL_API; | 76 | api = LOCAL_API; |
@@ -92,7 +92,7 @@ export const TODOS_FRONTEND = todos; | |||
92 | 92 | ||
93 | export function aboutAppDetails() { | 93 | export function aboutAppDetails() { |
94 | return [ | 94 | return [ |
95 | `Version: ${ferdiVersion}`, | 95 | `Version: ${ferdiumVersion}`, |
96 | `Electron: ${electronVersion}`, | 96 | `Electron: ${electronVersion}`, |
97 | `Chrome: ${chromeVersion}`, | 97 | `Chrome: ${chromeVersion}`, |
98 | `Node.js: ${nodeVersion}`, | 98 | `Node.js: ${nodeVersion}`, |