aboutsummaryrefslogtreecommitdiff
path: root/ext/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-29 22:32:40 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-29 22:32:40 -0700
commit6d1fc8a20ee44a414d5550b7529cb383d11a3b9f (patch)
treef1ac3a5e99482cfa686c76bcab8ed905ee4b61bf /ext/util.js
parent93eaed39c167cc8890924b952f18db8043d658a1 (diff)
Don't use JQuery in content script
Diffstat (limited to 'ext/util.js')
-rw-r--r--ext/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/util.js b/ext/util.js
index 8db4f297..eb153e9b 100644
--- a/ext/util.js
+++ b/ext/util.js
@@ -54,7 +54,7 @@ function getRangePaddedRect(range) {
function getPopupPositionForRange(popup, range, offset) {
const rangeRect = range.getBoundingClientRect();
- const popupRect = popup.get(0).getBoundingClientRect();
+ const popupRect = popup.getBoundingClientRect();
let posX = rangeRect.left;
if (posX + popupRect.width >= window.innerWidth) {