diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/index.js b/src/index.js index d3b996540..8a4283f49 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -24,6 +24,7 @@ import { | |||
24 | isMac, | 24 | isMac, |
25 | isWindows, | 25 | isWindows, |
26 | isLinux, | 26 | isLinux, |
27 | aboutAppDetails, | ||
27 | } from './environment'; | 28 | } from './environment'; |
28 | 29 | ||
29 | import { mainIpcHandler as basicAuthHandler } from './features/basicAuth'; | 30 | import { mainIpcHandler as basicAuthHandler } from './features/basicAuth'; |
@@ -34,14 +35,12 @@ import Settings from './electron/Settings'; | |||
34 | import handleDeepLink from './electron/deepLinking'; | 35 | import handleDeepLink from './electron/deepLinking'; |
35 | import { isPositionValid } from './electron/windowUtils'; | 36 | import { isPositionValid } from './electron/windowUtils'; |
36 | import { appId } from './package.json'; // eslint-disable-line import/no-unresolved | 37 | import { appId } from './package.json'; // eslint-disable-line import/no-unresolved |
37 | import * as buildInfo from './buildInfo.json'; // eslint-disable-line import/no-unresolved | ||
38 | import './electron/exception'; | 38 | import './electron/exception'; |
39 | 39 | ||
40 | import { asarPath } from './helpers/asar-helpers'; | 40 | import { asarPath } from './helpers/asar-helpers'; |
41 | import { isValidExternalURL } from './helpers/url-helpers'; | 41 | import { isValidExternalURL } from './helpers/url-helpers'; |
42 | import userAgent, { ferdiVersion } from './helpers/userAgent-helpers'; | 42 | import userAgent from './helpers/userAgent-helpers'; |
43 | 43 | ||
44 | const osName = require('os-name'); | ||
45 | const debug = require('debug')('Ferdi:App'); | 44 | const debug = require('debug')('Ferdi:App'); |
46 | 45 | ||
47 | // From Electron 9 onwards, app.allowRendererProcessReuse = true by default. This causes the app to crash on Windows due to the | 46 | // From Electron 9 onwards, app.allowRendererProcessReuse = true by default. This causes the app to crash on Windows due to the |
@@ -147,7 +146,7 @@ if (!settings.get('enableGPUAcceleration')) { | |||
147 | } | 146 | } |
148 | 147 | ||
149 | app.setAboutPanelOptions({ | 148 | app.setAboutPanelOptions({ |
150 | applicationVersion: `Version: ${ferdiVersion}\nElectron: ${process.versions.electron}\nChrome: ${process.versions.chrome}\nNode.js: ${process.versions.node}\nPlatform: ${osName()}\nArch: ${process.arch}\nBuild date: ${new Date(Number(buildInfo.timestamp))}\nGit SHA: ${buildInfo.gitHashShort}\nGit branch: ${buildInfo.gitBranch}`, | 149 | applicationVersion: aboutAppDetails(), |
151 | version: '', | 150 | version: '', |
152 | }); | 151 | }); |
153 | 152 | ||
@@ -156,7 +155,7 @@ const createWindow = () => { | |||
156 | const mainWindowState = windowStateKeeper({ | 155 | const mainWindowState = windowStateKeeper({ |
157 | defaultWidth: DEFAULT_WINDOW_OPTIONS.width, | 156 | defaultWidth: DEFAULT_WINDOW_OPTIONS.width, |
158 | defaultHeight: DEFAULT_WINDOW_OPTIONS.height, | 157 | defaultHeight: DEFAULT_WINDOW_OPTIONS.height, |
159 | maximize: true, // Automatically maximizes the window, if it was last clsoed maximized | 158 | maximize: true, // Automatically maximizes the window, if it was last closed maximized |
160 | fullScreen: true, // Automatically restores the window to full screen, if it was last closed full screen | 159 | fullScreen: true, // Automatically restores the window to full screen, if it was last closed full screen |
161 | }); | 160 | }); |
162 | 161 | ||