We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc22c7e commit 18ac479Copy full SHA for 18ac479
components/content/dancing-blob/index.vue
@@ -10,7 +10,7 @@ const blobRef = shallowRef<any>(null)
10
const analyser = shallowRef();
11
const audioStream = shallowRef();
12
const dataArray = shallowRef();
13
-const showInfoDialog = shallowRef(true);
+const showInfoDialog = shallowRef(false);
14
15
// lifecycle
16
onMounted(async () => {
@@ -21,8 +21,11 @@ onMounted(async () => {
21
showInfoDialog.value = access.state != "granted";
22
23
audioStream.value = await navigator.mediaDevices.getUserMedia({ audio: true });
24
+ showInfoDialog.value = false;
25
handleMicrophoneAccess()
26
+
27
} catch (error) {
28
+ showInfoDialog.value = true;
29
alert('Not able to accessing microphone');
30
}
31
})
0 commit comments