Skip to content

Commit 93fd273

Browse files
committed
Fix new custom location feature
1 parent 0f8a327 commit 93fd273

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/console2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@
585585

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

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

@@ -609,6 +609,8 @@
609609
opt : opt
610610
};
611611

612+
console.log(log);
613+
612614
// Build the context string
613615
var context = this.buildContext(log, log.show);
614616

0 commit comments

Comments
 (0)