diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-08-28 01:08:45 +0300 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-02 19:33:52 -0400 |
commit | 87ff5cb19bc78244faafcfcb54d8428b2ed978f6 (patch) | |
tree | 0ddc055137a247a7b7d0be24598bfec52b3e3a85 /ext/fg/js/popup-proxy.js | |
parent | 71471d08e56f1a2431e67d0439724cc52a1ea73e (diff) |
make containsPoint async everywhere
Diffstat (limited to 'ext/fg/js/popup-proxy.js')
-rw-r--r-- | ext/fg/js/popup-proxy.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js index bbf6a2cf..112b998e 100644 --- a/ext/fg/js/popup-proxy.js +++ b/ext/fg/js/popup-proxy.js @@ -69,21 +69,13 @@ class PopupProxy { return await this.invokeHostApi('setVisible', {id, visible}); } - containsPoint() { - throw 'Non-async function not supported'; - } - - async containsPointAsync(point) { + async containsPoint(point) { if (this.id === null) { return false; } return await this.invokeHostApi('containsPoint', {id: this.id, point}); } - containsPointIsAsync() { - return true; - } - async termsShow(elementRect, definitions, options, context) { const id = await this.getPopupId(); elementRect = PopupProxy.DOMRectToJson(elementRect); |