13 lines
374 B
JavaScript
13 lines
374 B
JavaScript
define([], function () {
|
|
|
|
// Defines the logger object
|
|
var logger = {
|
|
log: function () {},
|
|
info: function () {},
|
|
warn: function () {},
|
|
error: function () {}
|
|
};
|
|
|
|
// We can run StackEdit with http://.../?console to print logs in the console
|
|
return (/(\?|&)console($|&)/).test(location.search) ? console : logger;
|
|
}); |