From 8061171b9cf611246c6f9b372e9b0f1e187299f3 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 23 Aug 2014 10:55:04 +0200 Subject: [PATCH] Rename the sound files to make their role clearer. updates #62 --- converse.js | 14 +++++++------- sounds/{ping.mp3 => msg_received.mp3} | Bin sounds/{ping.ogg => msg_received.ogg} | Bin 3 files changed, 7 insertions(+), 7 deletions(-) rename sounds/{ping.mp3 => msg_received.mp3} (100%) rename sounds/{ping.ogg => msg_received.ogg} (100%) diff --git a/converse.js b/converse.js index 462dda6cd..66f864b4c 100644 --- a/converse.js +++ b/converse.js @@ -159,7 +159,7 @@ this.allow_otr = true; this.animate = true; this.auto_list_rooms = false; - this.auto_reconnect = true; + this.auto_reconnect = false; this.auto_subscribe = false; this.bosh_service_url = undefined; // The BOSH connection manager URL. this.cache_otr_key = false; @@ -2456,14 +2456,14 @@ }, playNotification: function () { - var ping; + var audio; if (converse.play_sounds && typeof Audio !== "undefined"){ - ping = new Audio("sounds/ping.ogg"); - if (ping.canPlayType('audio/ogg')) { - ping.play(); + audio = new Audio("sounds/msg_received.ogg"); + if (audio.canPlayType('/audio/ogg')) { + audio.play(); } else { - ping = new Audio("sounds/ping.mp3"); - ping.play(); + audio = new Audio("/sounds/msg_received.mp3"); + audio.play(); } } }, diff --git a/sounds/ping.mp3 b/sounds/msg_received.mp3 similarity index 100% rename from sounds/ping.mp3 rename to sounds/msg_received.mp3 diff --git a/sounds/ping.ogg b/sounds/msg_received.ogg similarity index 100% rename from sounds/ping.ogg rename to sounds/msg_received.ogg