소스 검색

core: Don't allow the connection to be passed in.

This was used for tests but is no longer necessary.
JC Brand 5 년 전
부모
커밋
9d619820f9
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      src/headless/converse-core.js

+ 0 - 5
src/headless/converse-core.js

@@ -1419,11 +1419,6 @@ _converse.initialize = async function (settings, callback) {
 
     // Initialization
     // --------------
-    // This is the end of the initialize method.
-    if (settings.connection) {
-        this.connection = settings.connection;
-    }
-
     await finishInitialization();
     if (_converse.isTestEnv()) {
         return _converse;