From 893c0fcc5c6b326a6230846a9015fed522491a75 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Thu, 10 Jun 2021 22:53:33 +0200 Subject: [PATCH] fixes --- CHANGELOG.md | 6 ++++++ src/back/utils.ts | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 852429d..0a902cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.0] - 2021-06-10 + +### Added + +- [macOS] Pause on Mic/Camera + ## [1.2.0] - 2021-06-01 ### Added diff --git a/src/back/utils.ts b/src/back/utils.ts index 7f09349..81d7b54 100644 --- a/src/back/utils.ts +++ b/src/back/utils.ts @@ -32,17 +32,17 @@ export class InputDevicesStatus { static update() { // TODO: Update electron version as soon as issue is resolved https://github.com/electron/electron/issues/26143 - isMicrophoneActive().then((result) => (this.status.mic = result)) - isCameraActive().then((result) => (this.status.camera = result)) + isMicrophoneActive().then((result) => (InputDevicesStatus.status.mic = result)) + isCameraActive().then((result) => (InputDevicesStatus.status.camera = result)) } static init() { - setInterval(this.update, 3000) + setInterval(InputDevicesStatus.update, 2000) } static areCameraOrMicrophoneActive(): boolean { if (Settings.load('skipOnCameraOrMic')) { - return this.status.mic || this.status.camera + return InputDevicesStatus.status.mic || InputDevicesStatus.status.camera } return false }