summaryrefslogtreecommitdiff
path: root/ext/fg/js/client.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-07-23 13:12:24 -0700
committerAlex Yatskov <alex@foosoft.net>2016-07-23 13:12:24 -0700
commit6d9b4392e2cd78b5e76e3b47cc3b8ca76d37129b (patch)
treec70307a8ce9542b7df87155861ae86edfbf6b79c /ext/fg/js/client.js
parenta72e958ebf143464f4cd8df90d48f3268aeeea94 (diff)
Renaming classes
Diffstat (limited to 'ext/fg/js/client.js')
-rw-r--r--ext/fg/js/client.js4
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;