diff --git a/public/bundle.js b/public/bundle.js index 82efd94..f7b901a 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20539,7 +20539,7 @@ const getLocalStream = () => { // If it is the first time client enter and give permission permissionStatus.onchange = function() { console.log('🟨 [PERMISSION] onchange', this.state); - if (this.state === 'grated') { + if (this.state === 'granted') { doIHaveAudio = true; } } diff --git a/public/index.js b/public/index.js index f345b9c..03f3f82 100644 --- a/public/index.js +++ b/public/index.js @@ -181,7 +181,7 @@ const getLocalStream = () => { // If it is the first time client enter and give permission permissionStatus.onchange = function() { console.log('🟨 [PERMISSION] onchange', this.state); - if (this.state === 'grated') { + if (this.state === 'granted') { doIHaveAudio = true; } }