From c220f4170125003183f8539d9c3afa00db2731b4 Mon Sep 17 00:00:00 2001 From: liabru Date: Wed, 21 Jan 2015 00:09:07 +0000 Subject: [PATCH] changed Common.log to use console.warn --- src/core/Common.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/Common.js b/src/core/Common.js index fbd4c27..5087f09 100644 --- a/src/core/Common.js +++ b/src/core/Common.js @@ -253,7 +253,7 @@ var Common = {}; * @param {string} type */ Common.log = function(message, type) { - if (!console || !console.log) + if (!console || !console.log || !console.warn) return; var style; @@ -261,15 +261,13 @@ var Common = {}; switch (type) { case 'warn': - style = 'color: coral'; + console.warn('Matter.js:', message); break; case 'error': - style = 'color: red'; + console.log('Matter.js:', message); break; } - - console.log('%c [Matter] ' + type + ': ' + message, style); }; /**