Skip to content

Commit

Permalink
Fix new custom location feature
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumewuip committed Feb 2, 2015
1 parent 0f8a327 commit 93fd273
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/console2.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@

//use this._location if it's an object (custom location)
//or build the location
var location = (this._location || this.opt.alwaysLocation) === true ? getLocation() : this._location;
var location = typeof this._location === 'object' ? this._location : getLocation();

var time = (typeof this._time !== 'boolean') ? this._time : Date.now();

Expand All @@ -609,6 +609,8 @@
opt : opt
};

console.log(log);

// Build the context string
var context = this.buildContext(log, log.show);

Expand Down

0 comments on commit 93fd273

Please sign in to comment.