Procházet zdrojové kódy

Better check to know whether we can save the model

JC Brand před 8 roky
rodič
revize
fcbeff4c72
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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();