add chat sound
This commit is contained in:
parent
917109442e
commit
a802027333
|
|
@ -1,4 +1,5 @@
|
|||
export const Config = {
|
||||
ChatSound: "//computernewb.com/collab-vm/notify.ogg",
|
||||
ServerAddresses: [
|
||||
"wss://computernewb.com/collab-vm/vm0",
|
||||
"wss://computernewb.com/collab-vm/vm1",
|
||||
|
|
|
|||
|
|
@ -263,6 +263,7 @@ var turnTimer = 0;
|
|||
var voteTimer = 0;
|
||||
var rank : Rank = Rank.Unregistered;
|
||||
var perms : Permissions = new Permissions(0);
|
||||
const chatsound = new Audio(Config.ChatSound);
|
||||
|
||||
// Active VM
|
||||
var VM : CollabVMClient | null = null;
|
||||
|
|
@ -458,6 +459,7 @@ function chatMessage(username : string, message : string) {
|
|||
tr.appendChild(td);
|
||||
elements.chatList.appendChild(tr);
|
||||
elements.chatListDiv.scrollTop = elements.chatListDiv.scrollHeight;
|
||||
chatsound.play();
|
||||
}
|
||||
|
||||
function addUser(user : User) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user