Skip to content

Commit

Permalink
Merge pull request #63 from open-voip-alliance/62-permissions-query
Browse files Browse the repository at this point in the history
Removed redunant navigator.permissions.query
  • Loading branch information
patrickswijgman authored Sep 22, 2020
2 parents 06948a5 + c313554 commit 710ffd1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 710ffd1

Please sign in to comment.