Skip to content

Commit

Permalink
Removed redunant navigator.permissions.query
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickswijgman committed Sep 22, 2020
1 parent 06948a5 commit c313554
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 c313554

Please sign in to comment.