Explorar o código

Better check to know whether we can save the model

JC Brand %!s(int64=8) %!d(string=hai) anos
pai
achega
fcbeff4c72
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/converse-chatview.js

+ 1 - 1
src/converse-chatview.js

@@ -777,7 +777,7 @@
                 },
 
                 afterShown: function (focus) {
-                    if (_converse.connection.connected) {
+                    if (this.model.collection.browserStorage) {
                         // Without a connection, we haven't yet initialized
                         // localstorage
                         this.model.save();