aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/service-helpers.ts2
-rw-r--r--src/helpers/update-helpers.ts2
-rw-r--r--src/helpers/userAgent-helpers.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/helpers/service-helpers.ts b/src/helpers/service-helpers.ts
index 678d5024f..f27d53285 100644
--- a/src/helpers/service-helpers.ts
+++ b/src/helpers/service-helpers.ts
@@ -12,7 +12,7 @@ export function removeServicePartitionDirectory(
12 const servicePartition = getServicePartitionsDirectory( 12 const servicePartition = getServicePartitionsDirectory(
13 `${addServicePrefix ? 'service-' : ''}${id}`, 13 `${addServicePrefix ? 'service-' : ''}${id}`,
14 ); 14 );
15 return removeSync(servicePartition); 15 removeSync(servicePartition);
16} 16}
17 17
18export async function getServiceIdsFromPartitions() { 18export async function getServiceIdsFromPartitions() {
diff --git a/src/helpers/update-helpers.ts b/src/helpers/update-helpers.ts
index 9a36850fc..ca541c4b0 100644
--- a/src/helpers/update-helpers.ts
+++ b/src/helpers/update-helpers.ts
@@ -5,7 +5,7 @@ export function getFerdiumVersion(
5 currentLocation: string, 5 currentLocation: string,
6 ferdiumVersion: string, 6 ferdiumVersion: string,
7): string { 7): string {
8 const matches = currentLocation?.match(/version=([^&]*)/); 8 const matches = currentLocation.match(/version=([^&]*)/);
9 if (matches !== null) { 9 if (matches !== null) {
10 return `v${matches[1]}`; 10 return `v${matches[1]}`;
11 } 11 }
diff --git a/src/helpers/userAgent-helpers.ts b/src/helpers/userAgent-helpers.ts
index bc99fbc52..42e3a9851 100644
--- a/src/helpers/userAgent-helpers.ts
+++ b/src/helpers/userAgent-helpers.ts
@@ -13,7 +13,7 @@ import {
13function macOS() { 13function macOS() {
14 const version = macosVersion() ?? ''; 14 const version = macosVersion() ?? '';
15 let cpuName = cpus()[0].model.split(' ')[0]; 15 let cpuName = cpus()[0].model.split(' ')[0];
16 if (cpuName && /\(/.test(cpuName)) { 16 if (cpuName.includes('(')) {
17 // eslint-disable-next-line prefer-destructuring 17 // eslint-disable-next-line prefer-destructuring
18 cpuName = cpuName.split('(')[0]; 18 cpuName = cpuName.split('(')[0];
19 } 19 }