From d796b670f7edaba3ee87ac74558073ae44133eb4 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Wed, 17 Apr 2024 20:50:03 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit c8e2ae4 --- freedata-gui/electron/main/index.ts | 10 ++++----- .../grid/grid_active_heard_stations_mini.vue | 13 ++++++++---- .../grid/grid_active_rig_control.vue | 21 ++++++++++--------- .../src/components/grid/grid_stats_chart.vue | 10 ++++----- freedata-gui/src/components/settings_chat.vue | 2 +- freedata-gui/src/js/radioHandler.ts | 16 +++++++------- 6 files changed, 37 insertions(+), 35 deletions(-) diff --git a/freedata-gui/electron/main/index.ts b/freedata-gui/electron/main/index.ts index 0b6005f6..cb941bee 100644 --- a/freedata-gui/electron/main/index.ts +++ b/freedata-gui/electron/main/index.ts @@ -112,11 +112,11 @@ app.whenReady().then(() => { //serverProcess.unref(); // Allow the server process to continue running independently of the parent process // break; case "linux": - serverPath = join(basePath, "server.dist", "freedata-server"); - console.log(`Starting server with path: ${serverPath}`); - serverProcess = spawn(serverPath, [], { detached: true }); - serverProcess.unref(); // Allow the server process to continue running independently of the parent process - break; + serverPath = join(basePath, "server.dist", "freedata-server"); + console.log(`Starting server with path: ${serverPath}`); + serverProcess = spawn(serverPath, [], { detached: true }); + serverProcess.unref(); // Allow the server process to continue running independently of the parent process + break; case "win32": serverPath = join(basePath, "freedata-server", "freedata-server.exe"); console.log(`Starting server with path: ${serverPath}`); diff --git a/freedata-gui/src/components/grid/grid_active_heard_stations_mini.vue b/freedata-gui/src/components/grid/grid_active_heard_stations_mini.vue index e3837b7e..7824bad9 100644 --- a/freedata-gui/src/components/grid/grid_active_heard_stations_mini.vue +++ b/freedata-gui/src/components/grid/grid_active_heard_stations_mini.vue @@ -34,9 +34,10 @@ function getMaidenheadDistance(dxGrid) { // } } -function pushToPing(origin) -{ - window.dispatchEvent(new CustomEvent("stationSelected", {bubbles:true, detail: origin })); +function pushToPing(origin) { + window.dispatchEvent( + new CustomEvent("stationSelected", { bubbles: true, detail: origin }), + ); }