Commit fcbeff4c authored by JC Brand's avatar JC Brand

Better check to know whether we can save the model

parent f897fbb7
...@@ -777,7 +777,7 @@ ...@@ -777,7 +777,7 @@
}, },
afterShown: function (focus) { afterShown: function (focus) {
if (_converse.connection.connected) { if (this.model.collection.browserStorage) {
// Without a connection, we haven't yet initialized // Without a connection, we haven't yet initialized
// localstorage // localstorage
this.model.save(); this.model.save();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment