diff options
Diffstat (limited to 'ext/util.js')
-rw-r--r-- | ext/util.js | 2 |
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) { |