Pārlūkot izejas kodu

Removes console.warn message from do_external_connect.js if there is no error passed.

master
hristoterezov 9 gadus atpakaļ
vecāks
revīzija
166a609b94
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      connection_optimization/do_external_connect.js

+ 2
- 1
connection_optimization/do_external_connect.js Parādīt failu

42
     }
42
     }
43
 
43
 
44
     function error_callback(error){
44
     function error_callback(error){
45
-        console.warn(error);
45
+        if(error) //error=undefined if external connect is disabled.
46
+            console.warn(error);
46
         // Sets that global variable to be used later by connect method in
47
         // Sets that global variable to be used later by connect method in
47
         // connection.js
48
         // connection.js
48
         window.XMPPAttachInfo = {
49
         window.XMPPAttachInfo = {

Notiek ielāde…
Atcelt
Saglabāt