[mirotalk] - fix typo

This commit is contained in:
Miroslav Pejic
2021-01-28 21:15:21 +01:00
parent af7d176954
commit a7aa27fd91
4 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ NGROK_AUTH_TOKEN=YourNgrokAuthToken
TURN_URLS=turn:numb.viagenie.ca
TURN_USERNAME=YourNumbUsername
TURN=PASSWORD=YourNumbPassword
TURN_PASSWORD=YourNumbPassword
# Heroku
# https://devcenter.heroku.com/articles/config-vars
+8 -4
View File
@@ -34,13 +34,13 @@ async function ngrokStart() {
try {
await ngrok.authtoken(ngrokAuthToken);
await ngrok.connect(PORT);
const api = ngrok.getApi();
let api = ngrok.getApi();
let data = await api.get("api/tunnels");
data = JSON.parse(data);
//console.log(data);
const pu0 = data.tunnels[0].public_url;
const pu1 = data.tunnels[1].public_url;
const tunnelHttps = pu0.startsWith("https") ? pu0 : pu1;
let pu0 = data.tunnels[0].public_url;
let pu1 = data.tunnels[1].public_url;
let tunnelHttps = pu0.startsWith("https") ? pu0 : pu1;
console.log("ngrok-tunnel", { https: tunnelHttps });
// https://www.iditect.com/how-to/55122741.html
} catch (e) {
@@ -88,6 +88,10 @@ server.listen(PORT, null, function () {
console.log("settings", {
http: "http://localhost:" + PORT,
iceServers: iceServers,
ngrok: {
ngrok_enabled: ngrokEnabled,
ngrok_token: ngrokAuthToken,
},
});
});
+2 -2
View File
@@ -776,7 +776,7 @@ function showChatRoom() {
background: "black",
position: "center",
icon: "info",
title: "Enter your chat name",
title: "Enter a name for chat",
input: "text",
showClass: {
popup: "animate__animated animate__fadeInDown",
@@ -786,7 +786,7 @@ function showChatRoom() {
},
inputValidator: (value) => {
if (!value) {
return "Please write your chat name.";
return "Please enter a name for chat";
}
myChatName = value;
showMsgerDraggable();
-2
View File
@@ -1,5 +1,3 @@
@import url("https://fonts.googleapis.com/css?family=Fira+Sans:600|Heebo:400,500,700&display=swap");
/*Fade in page on load*/
@-webkit-keyframes fadeIn {
from {