зеркало из https://github.com/mozilla/pjs.git
Adding in try catch around playing sound, which I think caused bug 185744.
This commit is contained in:
Родитель
a5a2309951
Коммит
a0a381da83
|
@ -882,7 +882,15 @@ function playSound( ThisURL )
|
|||
|
||||
sample = sample.QueryInterface(Components.interfaces.nsISound);
|
||||
|
||||
sample.play( url );
|
||||
try
|
||||
{
|
||||
sample.play( url );
|
||||
}
|
||||
catch ( ex )
|
||||
{
|
||||
sample.beep();
|
||||
//alert( ex );
|
||||
}
|
||||
}
|
||||
|
||||
var gSelectAll = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче