diff --git a/public/bundle.js b/public/bundle.js index afd5beb..771346c 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20524,6 +20524,7 @@ const getLocalStream = () => { doIHaveAudio = true; } + // 🟨 [PERMISSION] onchange denied // If it is the first time client enter and give permission permissionStatus.onchange = function() { console.log('🟨 [PERMISSION] onchange', this.state); @@ -20541,7 +20542,7 @@ const getLocalStream = () => { .catch(error => { console.log(error.message) }) - } else if (this.state === 'denied') { + } else /*if (this.state === 'denied') */ { doIHaveAudio = false; console.log('Getting user permission'); navigator.mediaDevices.getUserMedia({ diff --git a/public/index.js b/public/index.js index ad405de..2b78f2b 100644 --- a/public/index.js +++ b/public/index.js @@ -166,6 +166,7 @@ const getLocalStream = () => { doIHaveAudio = true; } + // 🟨 [PERMISSION] onchange denied // If it is the first time client enter and give permission permissionStatus.onchange = function() { console.log('🟨 [PERMISSION] onchange', this.state); @@ -183,7 +184,7 @@ const getLocalStream = () => { .catch(error => { console.log(error.message) }) - } else if (this.state === 'denied') { + } else /*if (this.state === 'denied') */ { doIHaveAudio = false; console.log('Getting user permission'); navigator.mediaDevices.getUserMedia({