forked from mirrors/Scribe.js
Merge pull request #39 from guillaumewuip/feature-customTimeLocation
Fix new custom location feature
This commit is contained in:
commit
8f878d0cd8
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
@ -609,6 +609,8 @@
|
|||
opt : opt
|
||||
};
|
||||
|
||||
console.log(log);
|
||||
|
||||
// Build the context string
|
||||
var context = this.buildContext(log, log.show);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue