From e22093d97e080e28b558dd206b0cbc893fba4bb8 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 29 Nov 2022 10:27:55 +0200 Subject: [PATCH] Update server --- public/bundle.js | 3 ++- public/index.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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({