diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-10-14 13:24:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 13:24:58 +0200 |
commit | fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e (patch) | |
tree | 10caa332d957421e982c7ddd0c94623d5d62314d /src/environment.ts | |
parent | chore: convert various JS to TS (#2062) (diff) | |
download | ferdium-app-fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e.tar.gz ferdium-app-fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e.tar.zst ferdium-app-fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e.zip |
chore: convert files to TS (#2066)
Diffstat (limited to 'src/environment.ts')
-rw-r--r-- | src/environment.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/environment.ts b/src/environment.ts index ce2a77e7a..6b68ef432 100644 --- a/src/environment.ts +++ b/src/environment.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | // Note: This file has now become devoid of all references to values deduced from the remote process - all those now live in the `environment-remote.js` file | 1 | // Note: This file has now become devoid of all references to values deduced from the remote process - all those now live in the `environment-remote.js` file |
2 | 2 | ||
3 | import os from 'os'; | 3 | import { platform, arch, release } from 'os'; |
4 | 4 | ||
5 | export const isMac = process.platform === 'darwin'; | 5 | export const isMac = process.platform === 'darwin'; |
6 | export const isWindows = process.platform === 'win32'; | 6 | export const isWindows = process.platform === 'win32'; |
@@ -10,9 +10,9 @@ export const electronVersion = process.versions.electron; | |||
10 | export const chromeVersion = process.versions.chrome; | 10 | export const chromeVersion = process.versions.chrome; |
11 | export const nodeVersion = process.versions.node; | 11 | export const nodeVersion = process.versions.node; |
12 | 12 | ||
13 | export const osPlatform = os.platform(); | 13 | export const osPlatform = platform(); |
14 | export const osArch = os.arch(); | 14 | export const osArch = arch(); |
15 | export const osRelease = os.release(); | 15 | export const osRelease = release(); |
16 | export const is64Bit = osArch.match(/64/); | 16 | export const is64Bit = osArch.match(/64/); |
17 | 17 | ||
18 | // for accelerator, show the shortform that electron/OS understands | 18 | // for accelerator, show the shortform that electron/OS understands |