Update.
This commit is contained in:
parent
a817b9b61d
commit
483a63ede9
@ -65,7 +65,7 @@ export class Chat extends EventHandler {
|
|||||||
}
|
}
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
this._waitConnect = resolve;
|
this._waitConnect = resolve;
|
||||||
console.debug("Connecting..");
|
//console.debug("Connecting..");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this._socket = new WebSocket(this._url);
|
this._socket = new WebSocket(this._url);
|
||||||
@ -142,7 +142,7 @@ export class NotificationAudio {
|
|||||||
new Audio(this.sounds[soundIndex])
|
new Audio(this.sounds[soundIndex])
|
||||||
.play()
|
.play()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.debug("Gave sound notification");
|
//console.debug("Gave sound notification");
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error("Notification failed:", error);
|
console.error("Notification failed:", error);
|
||||||
|
@ -243,8 +243,6 @@ class ChatInputComponent extends NjetComponent {
|
|||||||
if (distance < minDistance) {
|
if (distance < minDistance) {
|
||||||
minDistance = distance;
|
minDistance = distance;
|
||||||
closestAuthor = author;
|
closestAuthor = author;
|
||||||
console.info("closestAuthor",closestAuthor)
|
|
||||||
console.info("minDistance",minDistance)
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (minDistance < 5){
|
if (minDistance < 5){
|
||||||
|
Loading…
Reference in New Issue
Block a user