aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/popup-proxy.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-14 14:27:25 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-14 14:27:25 -0400
commit6d3037f3d6548b742fa73aec7504c4384f327674 (patch)
tree425698af2775a224d56e0ed9187d6f3cfaa4e663 /ext/fg/js/popup-proxy.js
parent89941d404cdae213ad6c609051de3d206f433beb (diff)
Remove destructuring from searchAt, containsPoint, docRangeFromPoint
Diffstat (limited to 'ext/fg/js/popup-proxy.js')
-rw-r--r--ext/fg/js/popup-proxy.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js
index c3a7bff0..f04e24e0 100644
--- a/ext/fg/js/popup-proxy.js
+++ b/ext/fg/js/popup-proxy.js
@@ -69,11 +69,11 @@ class PopupProxy {
return await this.invokeHostApi('setVisible', {id, visible});
}
- async containsPoint(point) {
+ async containsPoint(x, y) {
if (this.id === null) {
return false;
}
- return await this.invokeHostApi('containsPoint', {id: this.id, point});
+ return await this.invokeHostApi('containsPoint', {id: this.id, x, y});
}
async termsShow(elementRect, writingMode, definitions, options, context) {