aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/popup-proxy.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-04 17:58:43 -0400
committerGitHub <noreply@github.com>2020-09-04 17:58:43 -0400
commit95bfe2d9016ef982cdab17b616134aaf44b9753e (patch)
tree90e4163b7919a6f2e61c89da7f7e614cc4d05cfb /ext/fg/js/popup-proxy.js
parent8d534749456c9275686f260db82e9414481dcb2b (diff)
Popup proxy improvements (#764)
* Fix incorrect function invocations * Ignore setVisibleOverride when it returns null * Omit redundant async * Change default return value
Diffstat (limited to 'ext/fg/js/popup-proxy.js')
-rw-r--r--ext/fg/js/popup-proxy.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js
index efbc72a6..26659672 100644
--- a/ext/fg/js/popup-proxy.js
+++ b/ext/fg/js/popup-proxy.js
@@ -86,12 +86,12 @@ class PopupProxy extends EventDispatcher {
return this._invokeSafe('isVisible', {id: this._id}, false);
}
- async setVisibleOverride(value, priority) {
- return this._invokeSafe('setVisibleOverride', {id: this._id, value, priority});
+ setVisibleOverride(value, priority) {
+ return this._invokeSafe('setVisibleOverride', {id: this._id, value, priority}, null);
}
- async clearVisibleOverride(token) {
- return this._invokeSafe('clearVisibleOverride', {id: this._id, token});
+ clearVisibleOverride(token) {
+ return this._invokeSafe('clearVisibleOverride', {id: this._id, token}, false);
}
async containsPoint(x, y) {
@@ -135,12 +135,12 @@ class PopupProxy extends EventDispatcher {
return this._invokeSafe('updateTheme', {id: this._id});
}
- async setCustomOuterCss(css, useWebExtensionApi) {
- return this._invokeSafe('updateTheme', {id: this._id, css, useWebExtensionApi});
+ setCustomOuterCss(css, useWebExtensionApi) {
+ return this._invokeSafe('setCustomOuterCss', {id: this._id, css, useWebExtensionApi});
}
setChildrenSupported(value) {
- return this._invokeSafe('updateTheme', {id: this._id, value});
+ return this._invokeSafe('setChildrenSupported', {id: this._id, value});
}
getFrameRect() {