@@ -31,25 +31,25 @@ class DiscoEntity extends Model {
3131
3232 this . dataforms = new Collection ( ) ;
3333 let id = `converse.dataforms-${ this . get ( 'jid' ) } ` ;
34- this . dataforms . browserStorage = createStore ( id , 'session' ) ;
34+ this . dataforms . storage = createStore ( id , 'session' ) ;
3535
3636 this . features = new Collection ( ) ;
3737 id = `converse.features-${ this . get ( 'jid' ) } ` ;
38- this . features . browserStorage = createStore ( id , 'session' ) ;
38+ this . features . storage = createStore ( id , 'session' ) ;
3939 this . listenTo ( this . features , 'add' , this . onFeatureAdded ) ;
4040
4141 this . fields = new Collection ( ) ;
4242 id = `converse.fields-${ this . get ( 'jid' ) } ` ;
43- this . fields . browserStorage = createStore ( id , 'session' ) ;
43+ this . fields . storage = createStore ( id , 'session' ) ;
4444 this . listenTo ( this . fields , 'add' , this . onFieldAdded ) ;
4545
4646 this . items = new Collection ( ) ;
4747 id = `converse.items-${ this . get ( 'jid' ) } ` ;
48- this . items . browserStorage = createStore ( id , 'session' ) ;
48+ this . items . storage = createStore ( id , 'session' ) ;
4949
5050 this . identities = new Collection ( ) ;
5151 id = `converse.identities-${ this . get ( 'jid' ) } ` ;
52- this . identities . browserStorage = createStore ( id , 'session' ) ;
52+ this . identities . storage = createStore ( id , 'session' ) ;
5353
5454 this . fetchFeatures ( options ) ;
5555 }
@@ -109,12 +109,12 @@ class DiscoEntity extends Model {
109109 if ( options . ignore_cache ) {
110110 await this . queryInfo ( options ) ;
111111 } else {
112- const store_id = this . features . browserStorage . name ;
112+ const store_id = this . features . storage . name ;
113113
114114 // Checking only whether features have been cached, even though
115115 // there are other things that should be cached as well. We assume
116116 // that if features have been cached, everything else has been also.
117- const result = await this . features . browserStorage . store . getItem ( store_id ) ;
117+ const result = await this . features . storage . store . getItem ( store_id ) ;
118118 if ( ( result && result . length === 0 ) || result === null ) {
119119 await this . queryInfo ( ) ;
120120 } else {
0 commit comments