From c4e65f4b8ab915e94abee8af1c3052ba28082824 Mon Sep 17 00:00:00 2001 From: argenius Date: Sun, 10 Nov 2024 22:28:54 +0100 Subject: [PATCH] Fix lint --- .../components/daemon-not-running/daemon-status.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/shared/components/daemon-not-running/daemon-status.service.ts b/src/app/shared/components/daemon-not-running/daemon-status.service.ts index ad2f39e..078359b 100644 --- a/src/app/shared/components/daemon-not-running/daemon-status.service.ts +++ b/src/app/shared/components/daemon-not-running/daemon-status.service.ts @@ -111,12 +111,11 @@ export class DaemonStatusService { if (this.settings.runOnBattery && this._runningOnBattery && this.settings.batteryLevelThreshold > 0) { const batteryLevel = await this.electronService.getBatteryLevel(); this._batteryTooLow = batteryLevel <= this.settings.batteryLevelThreshold; - console.log(`battery level: ${batteryLevel}, threshold: ${this.settings.batteryLevelThreshold}, too low: ${this._batteryTooLow}`); } else if (!this.settings.runOnBattery) { this._batteryTooLow = false; } - }); + }).then().catch((error: any) => console.error(error)); } public Dispose(): void {