dragresize: Use _.get for converse.connection
This commit is contained in:
parent
5383d65d5a
commit
a0bd6dbab6
@ -172,7 +172,7 @@ converse.plugins.add('converse-dragresize', {
|
||||
// Initialize last known mouse position
|
||||
this.prev_pageY = 0;
|
||||
this.prev_pageX = 0;
|
||||
if (_converse.connection.connected) {
|
||||
if (_.get(_converse.connection, 'connected')) {
|
||||
this.height = this.model.get('height');
|
||||
this.width = this.model.get('width');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user