Преглед на файлове

rid and sid are on the _proto obj. Fixes #180

JC Brand преди 11 години
родител
ревизия
4273e19716
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      converse.js

+ 2 - 2
converse.js

@@ -3760,13 +3760,13 @@
         },
         },
         'getRID': function () {
         'getRID': function () {
             if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") {
             if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") {
-                return converse.connection.rid;
+                return converse.connection._proto.rid;
             }
             }
             return null;
             return null;
         },
         },
         'getSID': function () {
         'getSID': function () {
             if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") {
             if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") {
-                return converse.connection.sid;
+                return converse.connection._proto.sid;
             }
             }
             return null;
             return null;
         },
         },