浏览代码

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;