소스 검색

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

master
hristoterezov 9 년 전
부모
커밋
166a609b94
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      connection_optimization/do_external_connect.js

+ 2
- 1
connection_optimization/do_external_connect.js 파일 보기

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

Loading…
취소
저장