diff options
Diffstat (limited to 'ext/fg/js/range.js')
-rw-r--r-- | ext/fg/js/range.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/range.js b/ext/fg/js/range.js index 473cc449..a5c38e39 100644 --- a/ext/fg/js/range.js +++ b/ext/fg/js/range.js @@ -67,10 +67,10 @@ class Range { deselect() { const selection = window.getSelection(); - selection.removeRange(this.range); + selection.removeAllRanges(); } - equalTo(range) { + equals(range) { const equal = range.compareBoundaryPoints(Range.END_TO_END, this.range) === 0 && range.compareBoundaryPoints(Range.START_TO_START, this.range) === 0; |