diff options
Diffstat (limited to 'ext/fg/js/client.js')
-rw-r--r-- | ext/fg/js/client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js index 67400f34..60aa6883 100644 --- a/ext/fg/js/client.js +++ b/ext/fg/js/client.js @@ -90,12 +90,12 @@ class Client { textSourceFromPoint(point) { const element = document.elementFromPoint(point.x, point.y); if (element !== null && element.nodeName === 'IMG') { - return new ImageSource(element); + return new TextSourceImage(element); } const range = document.caretRangeFromPoint(point.x, point.y); if (range !== null) { - return new RangeSource(range); + return new TextSourceRange(range); } return null; |