aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-14 05:57:08 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-14 05:57:08 +0530
commit1612c2abc4a9c1423388510b7cffb256ce811493 (patch)
tree3b16d2e690fbac66d5bd9b355f20258afed17112 /src/index.js
parentUpdate submodules, browserslist data updates and linter fixes [skip ci] (diff)
downloadferdium-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."
This reverts commit af56a07359400e53cb3096e321bf6ee1bae12068. Fixes #1928 and #1929
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js19
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
11require('@electron/remote/main').initialize(); 11require('@electron/remote/main').initialize();
12 12
13import osName from 'os-name';
14import { DEFAULT_WINDOW_OPTIONS } from './config'; 13import { DEFAULT_WINDOW_OPTIONS } from './config';
15 14
16import { 15import {
@@ -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';
29import { ifUndefinedBoolean } from './jsUtils'; 25import { ifUndefinedBoolean } from './jsUtils';
30 26
@@ -41,7 +37,6 @@ import './electron/exception';
41import { asarPath } from './helpers/asar-helpers'; 37import { asarPath } from './helpers/asar-helpers';
42import { openExternalUrl } from './helpers/url-helpers'; 38import { openExternalUrl } from './helpers/url-helpers';
43import userAgent from './helpers/userAgent-helpers'; 39import userAgent from './helpers/userAgent-helpers';
44import * as buildInfo from './buildInfo.json'; // eslint-disable-line import/no-unresolved
45 40
46const debug = require('debug')('Ferdi:App'); 41const debug = require('debug')('Ferdi:App');
47 42
@@ -160,17 +155,7 @@ if (!retrieveSettingValue('enableGPUAcceleration', false)) {
160} 155}
161 156
162app.setAboutPanelOptions({ 157app.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