diff options
author | Vijay A <avijayr@protonmail.com> | 2021-09-14 05:57:08 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-09-14 05:57:08 +0530 |
commit | 1612c2abc4a9c1423388510b7cffb256ce811493 (patch) | |
tree | 3b16d2e690fbac66d5bd9b355f20258afed17112 /src/index.js | |
parent | Update submodules, browserslist data updates and linter fixes [skip ci] (diff) | |
download | ferdium-app-1612c2abc4a9c1423388510b7cffb256ce811493.tar.gz ferdium-app-1612c2abc4a9c1423388510b7cffb256ce811493.tar.zst ferdium-app-1612c2abc4a9c1423388510b7cffb256ce811493.zip |
Revert "refactor: reuse method from the core electron framework for the 'About' dialog."
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/index.js b/src/index.js index 1f3510361..7f1f77b4e 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -10,7 +10,6 @@ import ms from 'ms'; | |||
10 | 10 | ||
11 | require('@electron/remote/main').initialize(); | 11 | require('@electron/remote/main').initialize(); |
12 | 12 | ||
13 | import osName from 'os-name'; | ||
14 | import { DEFAULT_WINDOW_OPTIONS } from './config'; | 13 | import { DEFAULT_WINDOW_OPTIONS } from './config'; |
15 | 14 | ||
16 | import { | 15 | import { |
@@ -19,12 +18,9 @@ import { | |||
19 | isMac, | 18 | isMac, |
20 | isWindows, | 19 | isWindows, |
21 | isLinux, | 20 | isLinux, |
21 | aboutAppDetails, | ||
22 | userDataRecipesPath, | 22 | userDataRecipesPath, |
23 | userDataPath, | 23 | userDataPath, |
24 | ferdiVersion, | ||
25 | electronVersion, | ||
26 | chromeVersion, | ||
27 | nodeVersion, | ||
28 | } from './environment'; | 24 | } from './environment'; |
29 | import { ifUndefinedBoolean } from './jsUtils'; | 25 | import { ifUndefinedBoolean } from './jsUtils'; |
30 | 26 | ||
@@ -41,7 +37,6 @@ import './electron/exception'; | |||
41 | import { asarPath } from './helpers/asar-helpers'; | 37 | import { asarPath } from './helpers/asar-helpers'; |
42 | import { openExternalUrl } from './helpers/url-helpers'; | 38 | import { openExternalUrl } from './helpers/url-helpers'; |
43 | import userAgent from './helpers/userAgent-helpers'; | 39 | import userAgent from './helpers/userAgent-helpers'; |
44 | import * as buildInfo from './buildInfo.json'; // eslint-disable-line import/no-unresolved | ||
45 | 40 | ||
46 | const debug = require('debug')('Ferdi:App'); | 41 | const debug = require('debug')('Ferdi:App'); |
47 | 42 | ||
@@ -160,17 +155,7 @@ if (!retrieveSettingValue('enableGPUAcceleration', false)) { | |||
160 | } | 155 | } |
161 | 156 | ||
162 | app.setAboutPanelOptions({ | 157 | app.setAboutPanelOptions({ |
163 | applicationVersion: [ | 158 | applicationVersion: aboutAppDetails(), |
164 | `Version: ${ferdiVersion}`, | ||
165 | `Electron: ${electronVersion}`, | ||
166 | `Chrome: ${chromeVersion}`, | ||
167 | `Node.js: ${nodeVersion}`, | ||
168 | `Platform: ${osName()}`, | ||
169 | `Arch: ${process.arch}`, | ||
170 | `Build date: ${new Date(Number(buildInfo.timestamp))}`, | ||
171 | `Git SHA: ${buildInfo.gitHashShort}`, | ||
172 | `Git branch: ${buildInfo.gitBranch}`, | ||
173 | ].join('\n'), | ||
174 | version: '', | 159 | version: '', |
175 | }); | 160 | }); |
176 | 161 | ||