forked from mirrors/Scribe.js
Fix new custom location feature
This commit is contained in:
parent
0f8a327c89
commit
93fd2738aa
1 changed files with 3 additions and 1 deletions
|
@ -585,7 +585,7 @@
|
||||||
|
|
||||||
//use this._location if it's an object (custom location)
|
//use this._location if it's an object (custom location)
|
||||||
//or build the 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();
|
var time = (typeof this._time !== 'boolean') ? this._time : Date.now();
|
||||||
|
|
||||||
|
@ -609,6 +609,8 @@
|
||||||
opt : opt
|
opt : opt
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log(log);
|
||||||
|
|
||||||
// Build the context string
|
// Build the context string
|
||||||
var context = this.buildContext(log, log.show);
|
var context = this.buildContext(log, log.show);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue