Commit a0bd6dba authored by JC Brand's avatar JC Brand

dragresize: Use _.get for converse.connection

parent 5383d65d
......@@ -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');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment