From 6830058c2cf46f22f94d704f53c6160421953a15 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 27 Jan 2019 13:22:23 +0100 Subject: [PATCH] fixed some compiler errors --- shared/js/connection.ts | 8 ++++---- shared/js/sound/Sounds.ts | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/shared/js/connection.ts b/shared/js/connection.ts index 4613a2f7..75510c6c 100644 --- a/shared/js/connection.ts +++ b/shared/js/connection.ts @@ -1189,17 +1189,17 @@ class ConnectionCommandHandler { return; } if(invoker == this.connection._client.getClient()) { - sound.play(Sound.MESSAGE_SEND, { background_notification: true }); + sound.play(Sound.MESSAGE_SEND); target.chat(true).appendMessage("{0}: {1}", true, this.connection._client.getClient().createChatTag(true), MessageHelper.bbcode_chat(json["msg"])); } else { - sound.play(Sound.MESSAGE_RECEIVED, { background_notification: true }); + sound.play(Sound.MESSAGE_RECEIVED); invoker.chat(true).appendMessage("{0}: {1}", true, ClientEntry.chatTag(json["invokerid"], json["invokername"], json["invokeruid"], true), MessageHelper.bbcode_chat(json["msg"])); } } else if(mode == 2) { if(json["invokerid"] == this.connection._client.clientId) - sound.play(Sound.MESSAGE_SEND, { background_notification: true }); + sound.play(Sound.MESSAGE_SEND); else - sound.play(Sound.MESSAGE_RECEIVED, { background_notification: true }); + sound.play(Sound.MESSAGE_RECEIVED); chat.channelChat().appendMessage("{0}: {1}", true, ClientEntry.chatTag(json["invokerid"], json["invokername"], json["invokeruid"], true), MessageHelper.bbcode_chat(json["msg"])) } else if(mode == 3) { chat.serverChat().appendMessage("{0}: {1}", true, ClientEntry.chatTag(json["invokerid"], json["invokername"], json["invokeruid"], true), MessageHelper.bbcode_chat(json["msg"])); diff --git a/shared/js/sound/Sounds.ts b/shared/js/sound/Sounds.ts index cf61c66b..3b2f0ed8 100644 --- a/shared/js/sound/Sounds.ts +++ b/shared/js/sound/Sounds.ts @@ -319,7 +319,6 @@ namespace sound { console.log(tr("Replaying %s"), path); if(file.node) { file.node.currentTime = 0; - file.node. file.node.play(); } else { if(!warned) {