Skip to content

Commit

Permalink
Remove ES6 code from Livechat widget script (RocketChat#13105)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored and rodrigok committed Jan 16, 2019
1 parent de220b4 commit 2700f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rocketchat-livechat/assets/rocket-livechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,8 @@
return;
}

const right = parseInt(widget.style.right.replace(/px$/, ''), 10);
const bottom = parseInt(widget.style.bottom.replace(/px$/, ''), 10);
var right = parseInt(widget.style.right.replace(/px$/, ''), 10);
var bottom = parseInt(widget.style.bottom.replace(/px$/, ''), 10);
widget.style.right = (right - (displacement.x - this.dragOffset.x)) + 'px';
widget.style.bottom = (bottom - (displacement.y - this.dragOffset.y)) + 'px';
},
Expand Down

0 comments on commit 2700f4f

Please sign in to comment.