Better check to know whether we can save the model

This commit is contained in:
JC Brand 2017-06-06 22:12:54 +02:00
parent f897fbb7c0
commit fcbeff4c72

View File

@ -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();