]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/sound.js
write QWEBIRC_DEBUG to debug pages
[irc/quakenet/qwebirc.git] / js / sound.js
index f2043824a0bd760eb7f3abd49fc3ab514ebc3b22..ccd1c50d05a8b78af413d290132f976f5a916228 100644 (file)
@@ -28,10 +28,10 @@ qwebirc.sound.SoundPlayer = new Class({
       return;
     }
     
-    var debugMode = false;
-    qwebirc.util.importJS(qwebirc.global.staticBaseURL + "js/" + (debugMode?"soundmanager2":"soundmanager2-nodebug-jsmin") + ".js", "soundManager", function() {
+    qwebirc.util.importJS(qwebirc.global.staticBaseURL + "js/" + (QWEBIRC_DEBUG?"soundmanager2":"soundmanager2-nodebug-jsmin") + ".js", "soundManager", function() {
       soundManager.url = qwebirc.global.staticBaseURL + "sound/";
-      
+
+      var debugMode = false;
       soundManager.debugMode = debugMode;
       soundManager.useConsole = debugMode;
       soundManager.onload = function() {