From a0bd6dbab636deb0aa2bcc4c72f73ce95d085f0f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 11 Oct 2019 11:07:41 +0200 Subject: [PATCH] dragresize: Use _.get for converse.connection --- src/converse-dragresize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converse-dragresize.js b/src/converse-dragresize.js index 2463db1fb..17c4eae22 100644 --- a/src/converse-dragresize.js +++ b/src/converse-dragresize.js @@ -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'); }