From c313554a7bfefec0a12e9085f3c9565b7c09db1e Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 22 Sep 2020 10:48:52 +0200 Subject: [PATCH] Removed redunant navigator.permissions.query --- src/media.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/media.ts b/src/media.ts index 75abc626..e4a25bf2 100644 --- a/src/media.ts +++ b/src/media.ts @@ -84,12 +84,6 @@ class MediaSingleton extends EventEmitter implements IMediaDevices { console.error('permissions query mic not supported in firefox, doing fallback', err); } - // eslint-disable-next-line no-async-promise-executor - const { state } = await navigator.permissions.query({ name: 'microphone' }); - if (state === 'granted') { - return; - } - // eslint-disable-next-line no-async-promise-executor this.requestPermissionPromise = new Promise(async (resolve, reject) => { try {