Skip to content

Commit 754ff7f

Browse files
author
ft
committed
update
1 parent 37c9073 commit 754ff7f

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

_readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Support **IE6+**
1515

1616
Also work with log in **Console**
1717

18-
![Console](https://cloud.githubusercontent.com/assets/4565306/5972375/6ad4bc50-a893-11e4-812e-948bbae5f96d.png)
18+
![Console](https://cloud.githubusercontent.com/assets/4565306/5986930/53dcd1ae-a94c-11e4-857c-99010a4a7201.png)
1919

2020
Start
2121
---

debug.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ exports.skips = []
66
var colors = 'lightseagreen forestgreen goldenrod dodgerblue darkorchid crimson'.split(' ')
77
var colorIndex = 0
88

9+
exports.prefix = ''
10+
911
function noop() {}
1012

1113
function enable(namespaces) {
@@ -44,7 +46,7 @@ exports.log = function(namespace, args, color) {
4446
var ms = curr - (prev || curr)
4547
prev = curr
4648

47-
var label = 'ad:ares:' + namespace
49+
var label = exports.prefix + namespace
4850
var main = '%c' + label + '%c'
4951
var arr = [null, color, inherit]
5052
for (var i = 0; i < args.length; i++) {

dist/debug.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ exports.skips = []
1212
var colors = 'lightseagreen forestgreen goldenrod dodgerblue darkorchid crimson'.split(' ')
1313
var colorIndex = 0
1414

15+
exports.prefix = ''
16+
1517
function noop() {}
1618

1719
function enable(namespaces) {
@@ -50,7 +52,7 @@ exports.log = function(namespace, args, color) {
5052
var ms = curr - (prev || curr)
5153
prev = curr
5254

53-
var label = 'ad:ares:' + namespace
55+
var label = exports.prefix + namespace
5456
var main = '%c' + label + '%c'
5557
var arr = [null, color, inherit]
5658
for (var i = 0; i < args.length; i++) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "min-debug",
3-
"version": "1.2.4",
3+
"version": "1.2.5",
44
"description": "Debug module for browsers which can Display on page or in Console, for Phone and old IE debugging",
55
"main": "debug.js",
66
"directories": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Support **IE6+**
3131

3232
Also work with log in **Console**
3333

34-
![Console](https://cloud.githubusercontent.com/assets/4565306/5972375/6ad4bc50-a893-11e4-812e-948bbae5f96d.png)
34+
![Console](https://cloud.githubusercontent.com/assets/4565306/5986930/53dcd1ae-a94c-11e4-857c-99010a4a7201.png)
3535

3636
Start
3737
---

0 commit comments

Comments
 (0)