Add log method
This commit is contained in:
1 parent
4a4fb6fbc6
commit
0d6643cf7a
1 file changed
+11
@@ -0,0 +1,11 @@
|
|||||||
|
module.exports = function() {
|
||||||
|
if (this.options.debug && console) {
|
||||||
|
if (typeof console.log === "function") {
|
||||||
|
console.log.apply(console, arguments);
|
||||||
|
}
|
||||||
|
// ie is weird
|
||||||
|
else if (console.log) {
|
||||||
|
console.log(arguments);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user