Roo.js
authorjohn <john@roojs.com>
Mon, 15 Oct 2018 07:39:27 +0000 (15:39 +0800)
committerjohn <john@roojs.com>
Mon, 15 Oct 2018 07:39:27 +0000 (15:39 +0800)
Roo.js

diff --git a/Roo.js b/Roo.js
index 54e8329..28f6a4c 100644 (file)
--- a/Roo.js
+++ b/Roo.js
@@ -342,6 +342,11 @@ Roo.factory(conf, Roo.data);
             if ((typeof(console) == 'undefined') || (typeof(console.log) == 'undefined')) {
                 return; // alerT?
             }
+            
+            if(window.location.href.indexOf("localhost") !== -1) {
+                return;
+            }
+            
             console.log(s);
             
         },