[mirotalk] - store peer_name in localStorage + update dep.

This commit is contained in:
Miroslav Pejic
2022-08-15 09:22:09 +02:00
parent 1b25fdd8d0
commit ff0968fe41
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -32,8 +32,8 @@
"ngrok": "^4.3.1",
"qs": "^6.11.0",
"socket.io": "^4.5.1",
"@sentry/node": "^7.9.0",
"@sentry/integrations": "^7.9.0",
"@sentry/node": "^7.10.0",
"@sentry/integrations": "^7.10.0",
"swagger-ui-express": "^4.5.0",
"uuid": "8.3.2",
"yamljs": "^0.3.0"
+2
View File
@@ -785,6 +785,7 @@ async function whoAreYou() {
imageUrl: welcomeImg,
title: 'Enter your name',
input: 'text',
inputValue: window.localStorage.peer_name ? window.localStorage.peer_name : '',
html: `<br>
<div style="overflow: hidden;">
<button id="initAudioBtn" class="fas fa-microphone" onclick="handleAudio(event, true)"></button>
@@ -800,6 +801,7 @@ async function whoAreYou() {
inputValidator: (value) => {
if (!value) return 'Please enter your name';
myPeerName = value;
window.localStorage.peer_name = myPeerName;
whoAreYouJoin();
},
}).then(() => {