diff --git a/spiceconn.js b/spiceconn.js index 010a446..9651b47 100644 --- a/spiceconn.js +++ b/spiceconn.js @@ -189,8 +189,11 @@ SpiceConn.prototype = if (msg.type > 500) { - DEBUG > 0 && alert("Something has gone very wrong; we think we have message of type " + msg.type); - DEBUG > 0 && debugger; + if (DEBUG > 0) + { + alert("Something has gone very wrong; we think we have message of type " + msg.type); + debugger; + } } if (msg.size == 0)