Try-catch Audio fallback
This commit is contained in:
parent
ced6227818
commit
37b68b7bc4
File diff suppressed because one or more lines are too long
|
@ -31,8 +31,14 @@ $(function() {
|
|||
var sidebar = $("#sidebar");
|
||||
var chat = $("#chat");
|
||||
|
||||
var pop = new Audio();
|
||||
pop.src = "/audio/pop.ogg";
|
||||
try {
|
||||
var pop = new Audio();
|
||||
pop.src = "/audio/pop.ogg";
|
||||
} catch(e) {
|
||||
var pop = {
|
||||
play: $.noop
|
||||
};
|
||||
}
|
||||
|
||||
$("#play").on("click", function() { pop.play(); });
|
||||
$("#footer .icon").tooltip();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "shout",
|
||||
"description": "A web IRC client",
|
||||
"version": "0.21.2",
|
||||
"version": "0.21.3",
|
||||
"author": "Mattias Erming",
|
||||
"preferGlobal": true,
|
||||
"bin": {
|
||||
|
|
Loading…
Reference in New Issue