Skip to content

Commit

Permalink
fixed issue with userAgent check
Browse files Browse the repository at this point in the history
  • Loading branch information
hij1nx committed Feb 25, 2011
1 parent c3e5064 commit 71faca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weld.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

colorize = function(val) {
var sval = val+'', u='undefined';
if(!navigator) {
if(navigator.userAgent.toLowerCase().indexOf('node.js') !== -1) {
if(sval === 'false' || sval === 'null' || sval === '' || sval === u || typeof val === u || val === false) {
if(sval === '') { sval = '(empty string)' };
return color.red + sval + color.gray;
Expand Down

0 comments on commit 71faca0

Please sign in to comment.