aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/range.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/range.js')
-rw-r--r--ext/fg/js/range.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/range.js b/ext/fg/js/range.js
index a5c38e39..cf568a9c 100644
--- a/ext/fg/js/range.js
+++ b/ext/fg/js/range.js
@@ -79,7 +79,7 @@ class Range {
}
- static fromPos(point) {
+ static fromPoint(point) {
const range = document.caretRangeFromPoint(point.x, point.y);
return range === null ? null : new Range(range);
}