diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-15 20:48:52 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-16 19:54:41 -0500 |
commit | 44bde5c6765317294af317f7bbbdfa70d0d40b77 (patch) | |
tree | 4e97e53d84c2237bc2ff2bd041985a639bdc773a /ext/fg/js/popup-proxy-host.js | |
parent | 4014bbab427c9c9441ca778f3cda528e35f054f6 (diff) |
Reorganize popup-only public functions
Diffstat (limited to 'ext/fg/js/popup-proxy-host.js')
-rw-r--r-- | ext/fg/js/popup-proxy-host.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/popup-proxy-host.js b/ext/fg/js/popup-proxy-host.js index ea343c19..bf6604e5 100644 --- a/ext/fg/js/popup-proxy-host.js +++ b/ext/fg/js/popup-proxy-host.js @@ -101,7 +101,7 @@ class PopupProxyHost { async _onApiShowContent(id, elementRect, writingMode, type, details) { const popup = this._getPopup(id); elementRect = PopupProxyHost._convertJsonRectToDOMRect(popup, elementRect); - if (!PopupProxyHost._popupCanShow(popup)) { return Promise.resolve(false); } + if (!PopupProxyHost._popupCanShow(popup)) { return; } return await popup.showContent(elementRect, writingMode, type, details); } |