diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-07 04:11:18 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-07 04:11:18 +0200 |
commit | 9fef0751f3dc7f213f158a50124371f0c6fb5a17 (patch) | |
tree | 2fbdb5592497f195950052258c20ffd43ccb155b /ext/fg/js/popup-proxy-host.js | |
parent | 86be737508d3148c90ea04d702fab30fdfb464d2 (diff) |
replace spread with destructuring
Diffstat (limited to 'ext/fg/js/popup-proxy-host.js')
-rw-r--r-- | ext/fg/js/popup-proxy-host.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/popup-proxy-host.js b/ext/fg/js/popup-proxy-host.js index b9a5617c..7d86aa67 100644 --- a/ext/fg/js/popup-proxy-host.js +++ b/ext/fg/js/popup-proxy-host.js @@ -116,8 +116,8 @@ class PopupProxyHost { async _onApiContainsPoint({id, x, y}) { const popup = this._getPopup(id); - const rootPagePoint = PopupProxyHost._convertPopupPointToRootPagePoint(popup, x, y); - return await popup.containsPoint(...rootPagePoint); + [x, y] = PopupProxyHost._convertPopupPointToRootPagePoint(popup, x, y); + return await popup.containsPoint(x, y); } async _onApiShowContent({id, elementRect, writingMode, type, details}) { |