]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/sound.js
iframes should not have borders -- breaks page layout
[irc/quakenet/qwebirc.git] / js / sound.js
index f8822013ea44f832cf2a2e25de2f81a7e518a385..66ebdd05a04ff5d9a0ae3f1e3f6ef43cd0bca8d3 100644 (file)
@@ -47,10 +47,18 @@ qwebirc.sound.SoundPlayer = new Class({
     window.soundManager.beginDelayedInit();
   },
   createSound: function(name, src) {
-    soundManager.createSound(name, src);
+    try {
+      soundManager.createSound(name, src);
+    } catch(e) {
+      /* ignore... flashblock triggers this */
+    }
   },
   playSound: function(name) {
-    soundManager.play(name);
+    try {
+      soundManager.play(name);
+    } catch(e) {
+      /* ignore... */
+    }
   },
   beep: function() {
     if(!this.beepLoaded) {