1 | 'use strict';
|
2 |
|
3 | module.exports = function (Terminal) {
|
4 | Terminal.prototype.log = function() {
|
5 | if (!Terminal.debug) return;
|
6 | if (!window.console || !window.console.log) return;
|
7 | var args = Array.prototype.slice.call(arguments);
|
8 | window.console.log.apply(window.console, args);
|
9 | };
|
10 |
|
11 | Terminal.prototype.error = function() {
|
12 | if (!Terminal.debug) return;
|
13 | if (!window.console || !window.console.error) return;
|
14 | var args = Array.prototype.slice.call(arguments);
|
15 | window.console.error.apply(window.console, args);
|
16 | };
|
17 | };
|