diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-11-23 15:23:47 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-23 15:23:47 -0500 | 
| commit | 01ff7436ee381c4414e95572cff08aac999b7721 (patch) | |
| tree | cf5fc7fffdcec77f7dc3996ece0d35b227c9f8c6 /ext/fg/js/popup-proxy.js | |
| parent | 2971f262f9851d588f815d5ea03de69f9594de5a (diff) | |
Popup setup refactoring (#1054)
* Pass childrenSupported as a parameter to Frontend/Popup constructors
* Remove setChildrenSupported
* Use event listener instead of function override
* Update options order
* Expand options and use object for clarity
* Fix childrenSupported not being fully propagated
Diffstat (limited to 'ext/fg/js/popup-proxy.js')
| -rw-r--r-- | ext/fg/js/popup-proxy.js | 12 | 
1 files changed, 7 insertions, 5 deletions
| diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js index 26659672..26dce0d1 100644 --- a/ext/fg/js/popup-proxy.js +++ b/ext/fg/js/popup-proxy.js @@ -20,7 +20,13 @@   */  class PopupProxy extends EventDispatcher { -    constructor(id, depth, frameId, ownerFrameId, frameOffsetForwarder=null) { +    constructor({ +        id, +        depth, +        frameId, +        ownerFrameId, +        frameOffsetForwarder +    }) {          super();          this._id = id;          this._depth = depth; @@ -139,10 +145,6 @@ class PopupProxy extends EventDispatcher {          return this._invokeSafe('setCustomOuterCss', {id: this._id, css, useWebExtensionApi});      } -    setChildrenSupported(value) { -        return this._invokeSafe('setChildrenSupported', {id: this._id, value}); -    } -      getFrameRect() {          return new DOMRect(0, 0, 0, 0);      } |