Only log in debug mode
Andrew Kane
committed Mar 02, 2014
commit 1a9b07305504ef99081a2792d86ea3edbd0c6d04
Showing 1
changed file with
3 additions
and 1 deletions
vendor/assets/javascripts/ahoy.js
+3
-1
| @@ | @@ -63,7 +63,9 @@ |
| } | |
| function debug(message) { | |
| - | window.console.log(message, visitToken, visitorToken); |
| + | if (debugMode) { |
| + | window.console.log(message, visitToken, visitorToken); |
| + | } |
| } | |
| // main | |