Better check to know whether we can save the model
This commit is contained in:
parent
f897fbb7c0
commit
fcbeff4c72
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user