aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/popup-factory.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-factory.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-factory.js')
-rw-r--r--ext/fg/js/popup-factory.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/popup-factory.js b/ext/fg/js/popup-factory.js
index 27bd49cd..72c875f7 100644
--- a/ext/fg/js/popup-factory.js
+++ b/ext/fg/js/popup-factory.js
@@ -122,7 +122,7 @@ class PopupFactory {
promises.push(promise);
}
- const results = await Promise.all(promises);
+ const results = (await Promise.all(promises)).filter(({token}) => token !== null);
if (errors.length === 0) {
const token = generateId(16);