ソースを参照

Better check to know whether we can save the model

JC Brand 8 年 前
コミット
fcbeff4c72
1 ファイル変更1 行追加1 行削除
  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();