]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/sound.js
> now not allowed at end of urls
[irc/quakenet/qwebirc.git] / js / sound.js
index f2043824a0bd760eb7f3abd49fc3ab514ebc3b22..08316ae731bdb6cd549724bd8602b7d6e4f8aa64 100644 (file)
@@ -42,10 +42,18 @@ qwebirc.sound.SoundPlayer = new Class({
     }.bind(this));
   },
   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) {