diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-05-12 01:26:51 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 21:56:51 +0200 |
commit | 80d7ef19dbb4271416bd8b5bbf938e180c57e5f3 (patch) | |
tree | ec99db3b3b0727d7ac81c1ead70e17db0c1bb6b3 /src/helpers | |
parent | Fixing issue with icons being garbled due to misconfiguration of gulp (diff) | |
download | ferdium-app-80d7ef19dbb4271416bd8b5bbf938e180c57e5f3.tar.gz ferdium-app-80d7ef19dbb4271416bd8b5bbf938e180c57e5f3.tar.zst ferdium-app-80d7ef19dbb4271416bd8b5bbf938e180c57e5f3.zip |
Method reuse (#1379)
* Used already exported common functions to avoid the same logic being repeated.
* Use a different package to retrieve the os-name for the 'About Dialog'.
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/userAgent-helpers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/userAgent-helpers.js b/src/helpers/userAgent-helpers.js index be6162464..fd0d16e2d 100644 --- a/src/helpers/userAgent-helpers.js +++ b/src/helpers/userAgent-helpers.js | |||
@@ -5,7 +5,7 @@ import { isMac, isWindows } from '../environment'; | |||
5 | 5 | ||
6 | // This helper gets included from the backend and frontend but we only need to use "remote" | 6 | // This helper gets included from the backend and frontend but we only need to use "remote" |
7 | // if we are in the frontend | 7 | // if we are in the frontend |
8 | const ferdiVersion = remote && remote.app ? remote.app.getVersion() : app.getVersion(); | 8 | export const ferdiVersion = remote && remote.app ? remote.app.getVersion() : app.getVersion(); |
9 | 9 | ||
10 | function macOS() { | 10 | function macOS() { |
11 | const version = macosVersion(); | 11 | const version = macosVersion(); |