From 411cdc5dfd40cefa9372efcc0060bc191cf45255 Mon Sep 17 00:00:00 2001 From: Oliver Gutierrez Date: Thu, 8 Sep 2016 14:51:58 +0200 Subject: [PATCH] Fixed syntax error in debugger command. Debugger is not an object or command. It is a reserved word and "DEBUG > 0 &&" syntax does not work with it --- spiceconn.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)