Преглед изворни кода

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
     // Initialization
     // --------------
     // --------------
-    // This is the end of the initialize method.
-    if (settings.connection) {
-        this.connection = settings.connection;
-    }
-
     await finishInitialization();
     await finishInitialization();
     if (_converse.isTestEnv()) {
     if (_converse.isTestEnv()) {
         return _converse;
         return _converse;