aboutsummaryrefslogtreecommitdiffstats
path: root/src/environment.ts
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-10-14 13:24:58 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-14 13:24:58 +0200
commitfe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e (patch)
tree10caa332d957421e982c7ddd0c94623d5d62314d /src/environment.ts
parentchore: convert various JS to TS (#2062) (diff)
downloadferdium-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.ts8
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
3import os from 'os'; 3import { platform, arch, release } from 'os';
4 4
5export const isMac = process.platform === 'darwin'; 5export const isMac = process.platform === 'darwin';
6export const isWindows = process.platform === 'win32'; 6export const isWindows = process.platform === 'win32';
@@ -10,9 +10,9 @@ export const electronVersion = process.versions.electron;
10export const chromeVersion = process.versions.chrome; 10export const chromeVersion = process.versions.chrome;
11export const nodeVersion = process.versions.node; 11export const nodeVersion = process.versions.node;
12 12
13export const osPlatform = os.platform(); 13export const osPlatform = platform();
14export const osArch = os.arch(); 14export const osArch = arch();
15export const osRelease = os.release(); 15export const osRelease = release();
16export const is64Bit = osArch.match(/64/); 16export 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