Explorar o código

isDesktop() method deprecated.

@soyjavi %!s(int64=14) %!d(string=hai) anos
pai
achega
db4055cbf3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Lungo.Core.js

+ 1 - 1
src/Lungo.Core.js

@@ -21,7 +21,7 @@ LUNGO.Core = (function(lng, $$, undefined) {
      * @param {string} Message to show in console
      */
     var log = function(severity, message) {
-        if (lng.Environment.isDesktop()) {
+        if (!lng.Core.isMobile()) {
             console[(severity === 1) ? 'log' : (severity === 2) ? 'warn' : 'error'](message);
         } else {
             // @todo : send to the server