diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-12 14:34:45 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-12 15:31:29 -0400 |
commit | 194615ef21557236cd2b9ea390b4164a4d5338c5 (patch) | |
tree | 46bd7a3c8399c7f372a680182bb2328dfe65dc47 /ext/fg/js/popup-proxy.js | |
parent | 3e249e19ac5f5650553c6303b87adfdb2a688536 (diff) |
Make popups store options
Diffstat (limited to 'ext/fg/js/popup-proxy.js')
-rw-r--r-- | ext/fg/js/popup-proxy.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js index efbd28b2..22b95785 100644 --- a/ext/fg/js/popup-proxy.js +++ b/ext/fg/js/popup-proxy.js @@ -46,6 +46,11 @@ class PopupProxy { return id; } + async setOptions(options) { + const id = await this.getPopupId(); + return await this.invokeHostApi('setOptions', {id, options}); + } + async show(elementRect, options) { const id = await this.getPopupId(); elementRect = PopupProxy.DOMRectToJson(elementRect); |