dragresize: Use _.get for converse.connection

This commit is contained in:
JC Brand 2019-10-11 11:07:41 +02:00
parent 5383d65d5a
commit a0bd6dbab6

View File

@ -172,7 +172,7 @@ converse.plugins.add('converse-dragresize', {
// Initialize last known mouse position // Initialize last known mouse position
this.prev_pageY = 0; this.prev_pageY = 0;
this.prev_pageX = 0; this.prev_pageX = 0;
if (_converse.connection.connected) { if (_.get(_converse.connection, 'connected')) {
this.height = this.model.get('height'); this.height = this.model.get('height');
this.width = this.model.get('width'); this.width = this.model.get('width');
} }