Rename the sound files to make their role clearer. updates #62
This commit is contained in:
parent
73528f4ced
commit
8061171b9c
14
converse.js
14
converse.js
@ -159,7 +159,7 @@
|
|||||||
this.allow_otr = true;
|
this.allow_otr = true;
|
||||||
this.animate = true;
|
this.animate = true;
|
||||||
this.auto_list_rooms = false;
|
this.auto_list_rooms = false;
|
||||||
this.auto_reconnect = true;
|
this.auto_reconnect = false;
|
||||||
this.auto_subscribe = false;
|
this.auto_subscribe = false;
|
||||||
this.bosh_service_url = undefined; // The BOSH connection manager URL.
|
this.bosh_service_url = undefined; // The BOSH connection manager URL.
|
||||||
this.cache_otr_key = false;
|
this.cache_otr_key = false;
|
||||||
@ -2456,14 +2456,14 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
playNotification: function () {
|
playNotification: function () {
|
||||||
var ping;
|
var audio;
|
||||||
if (converse.play_sounds && typeof Audio !== "undefined"){
|
if (converse.play_sounds && typeof Audio !== "undefined"){
|
||||||
ping = new Audio("sounds/ping.ogg");
|
audio = new Audio("sounds/msg_received.ogg");
|
||||||
if (ping.canPlayType('audio/ogg')) {
|
if (audio.canPlayType('/audio/ogg')) {
|
||||||
ping.play();
|
audio.play();
|
||||||
} else {
|
} else {
|
||||||
ping = new Audio("sounds/ping.mp3");
|
audio = new Audio("/sounds/msg_received.mp3");
|
||||||
ping.play();
|
audio.play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user